Browse Source

Fix rat's attack sound.

asheep
Night Owl 6 years ago
parent
commit
c00881b4be
  1. 3
      dlls/rat.cpp

3
dlls/rat.cpp

@ -183,7 +183,8 @@ void CRat::HandleAnimEvent( MonsterEvent_t *pEvent ) @@ -183,7 +183,8 @@ void CRat::HandleAnimEvent( MonsterEvent_t *pEvent )
vecJumpDir = Vector( gpGlobals->v_forward.x, gpGlobals->v_forward.y, gpGlobals->v_up.z ) * 350;
}
EMIT_SOUND_DYN( edict(), CHAN_VOICE, pAttackSounds[0], GetSoundVolue(), ATTN_IDLE, 0, GetVoicePitch() );
if( RANDOM_LONG( 0, 2 ) )
EMIT_SOUND_DYN( edict(), CHAN_VOICE, pAttackSounds[0], GetSoundVolue(), ATTN_IDLE, 0, GetVoicePitch() );
pev->velocity = vecJumpDir;
m_flNextAttack = gpGlobals->time + 2;

Loading…
Cancel
Save