Skip to content

Commit 62413b7

Browse files
committed
1 parent ffab8a4 commit 62413b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/game/shared/tf/tf_weapon_sniperrifle.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,13 @@ void CTFSniperRifle::PlayWeaponShootSound( void )
481481
{
482482
float flDamageBonus = 1.0f;
483483
CALL_ATTRIB_HOOK_FLOAT( flDamageBonus, sniper_full_charge_damage_bonus );
484+
#ifdef BDSBASE
485+
// Prevents Non-Machina rifles with "sniper_full_charge_damage_bonus"
486+
// from playing "SPECIAL3", which usually is Undefined
487+
if (flDamageBonus > 1.0f && GetRifleType() == RIFLE_MACHINA)
488+
#else
484489
if ( flDamageBonus > 1.0f )
490+
#endif
485491
{
486492
WeaponSound( SPECIAL3 );
487493
return;

0 commit comments

Comments
 (0)