Merge d7176f3597 into 7191ecc418
This commit is contained in:
commit
1e40c83eef
|
|
@ -445,7 +445,11 @@ void CTFSniperRifle::PlayWeaponShootSound( void )
|
|||
{
|
||||
float flDamageBonus = 1.0f;
|
||||
CALL_ATTRIB_HOOK_FLOAT( flDamageBonus, sniper_full_charge_damage_bonus );
|
||||
if ( flDamageBonus > 1.0f )
|
||||
const CEconItemView* pItem = GetAttributeContainer()->GetItem();
|
||||
// Fixes rifles with "sniper_full_charge_damage_bonus"
|
||||
// playing an undefined "SPECIAL3" sound when not fully charged.
|
||||
// Improvement By Bitl
|
||||
if ( flDamageBonus > 1.0f && ( pItem && pItem->GetStaticData()->GetWeaponReplacementSound( GetTeamNumber(), SPECIAL3 )))
|
||||
{
|
||||
WeaponSound( SPECIAL3 );
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue