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 93efcbb commit 4194540Copy full SHA for 4194540
sp/src/game/server/hl2/npc_attackchopper.cpp
@@ -4055,9 +4055,12 @@ void CNPC_AttackHelicopter::Event_Killed( const CTakeDamageInfo &info )
4055
}
4056
4057
m_lifeState = LIFE_DYING;
4058
-
4059
- CSoundEnvelopeController &controller = CSoundEnvelopeController::GetController();
4060
- controller.SoundChangeVolume( m_pGunFiringSound, 0.0, 0.1f );
+
+ if ( GetSleepState() != AISS_WAITING_FOR_INPUT )
+ {
4061
+ CSoundEnvelopeController& controller = CSoundEnvelopeController::GetController();
4062
+ controller.SoundChangeVolume( m_pGunFiringSound, 0.0, 0.1f );
4063
+ }
4064
4065
if( GetCrashPoint() == NULL )
4066
{
0 commit comments