From f63221bd6038d5f422df2803c1b75ff31c3d458c Mon Sep 17 00:00:00 2001 From: SuperCake Date: Tue, 1 Sep 2026 21:10:52 +0200 Subject: [PATCH 1/2] fix(sniper): add up penetration power --- src/game/shared/swarm/asw_weapon_sniper_rifle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp b/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp index f2ba70c24..c5d61b22c 100644 --- a/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp +++ b/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp @@ -192,11 +192,11 @@ void CASW_Weapon_Sniper_Rifle::PrimaryAttack( void ) int iPenetration = 1; if ( IsZoomed() ) { - iPenetration = 2; + iPenetration += 1; } if ( pMarine->GetDamageBuffEndTime() > gpGlobals->curtime ) // sniper rifle penetrates more targets when marine is in a damage amp { - iPenetration = 3; + iPenetration += 2; } pMarine->FirePenetratingBullets( info, iPenetration, 3.5f, 0, true, NULL, false ); From aad8e27291cfc170418bde1948e5c38ef255dda5 Mon Sep 17 00:00:00 2001 From: SuperCake Date: Tue, 1 Sep 2026 23:41:57 +0200 Subject: [PATCH 2/2] feat(sniper): dynamically set wall penetration value - primary: nerfed - secondary: unchanged - amped: buffed --- src/game/shared/swarm/asw_weapon_sniper_rifle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp b/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp index c5d61b22c..58cfebf93 100644 --- a/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp +++ b/src/game/shared/swarm/asw_weapon_sniper_rifle.cpp @@ -198,7 +198,8 @@ void CASW_Weapon_Sniper_Rifle::PrimaryAttack( void ) { iPenetration += 2; } - pMarine->FirePenetratingBullets( info, iPenetration, 3.5f, 0, true, NULL, false ); + int iWallPenetration = 1 + iPenetration; + pMarine->FirePenetratingBullets( info, iPenetration, iWallPenetration + 0.5f, 0, true, NULL, false ); // increment shooting stats #ifndef CLIENT_DLL