Browse Source

Prevent possible repeatable ear ringing sound playing.

visitors
Night Owl 6 years ago
parent
commit
1f170d15c1
  1. 1
      dlls/player.cpp

1
dlls/player.cpp

@ -493,6 +493,7 @@ int CBasePlayer::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, fl
{ {
if( ( bitsDamageType & DMG_BLAST ) && flDamage > 10 ) if( ( bitsDamageType & DMG_BLAST ) && flDamage > 10 )
{ {
STOP_SOUND( ENT( pev ), CHAN_STATIC, "player/ear_ringing.wav" );
EMIT_SOUND_DYN( ENT( pev ), CHAN_STATIC, "player/ear_ringing.wav", 1.0, ATTN_NORM, 0, PITCH_NORM ); EMIT_SOUND_DYN( ENT( pev ), CHAN_STATIC, "player/ear_ringing.wav", 1.0, ATTN_NORM, 0, PITCH_NORM );
} }
} }

Loading…
Cancel
Save