Browse Source

Fix rat's attack sound.

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

1
dlls/rat.cpp

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

Loading…
Cancel
Save