We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d2dee commit e94a5dbCopy full SHA for e94a5db
src/game/shared/tf/tf_weapon_sniperrifle.cpp
@@ -484,7 +484,9 @@ void CTFSniperRifle::PlayWeaponShootSound( void )
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)
+ const CEconItemView* pItem = GetAttributeContainer()->GetItem();
488
+
489
+ if (flDamageBonus > 1.0f && (pItem && pItem->GetStaticData()->GetWeaponReplacementSound(GetTeamNumber(), SPECIAL3)))
490
#else
491
if ( flDamageBonus > 1.0f )
492
#endif
0 commit comments