Prevent possible repeatable ear ringing sound playing.

This commit is contained in:
Night Owl 2018-10-31 04:48:23 +05:00
parent 1f7e5bc9d3
commit 1f170d15c1

View File

@ -493,6 +493,7 @@ int CBasePlayer::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, fl
{
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 );
}
}