Skip to content

Commit

Permalink
Add hgrunt kick sound
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 24, 2024
1 parent d066788 commit 0c61783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SourceCode/dlls/hgrunt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,11 @@ void CHGrunt :: HandleAnimEvent( MonsterEvent_t *pEvent )

case HGRUNT_AE_KICK:
{
EMIT_SOUND(ENT(pev), CHAN_WEAPON, "hgrunt/gr_kick.wav", 1, ATTN_NORM);
CBaseEntity *pHurt = Kick();

if ( pHurt )
{
// SOUND HERE!
UTIL_MakeVectors( pev->angles );
pHurt->pev->punchangle.x = 15;
pHurt->pev->velocity = pHurt->pev->velocity + gpGlobals->v_forward * 100 + gpGlobals->v_up * 50;
Expand Down Expand Up @@ -1078,6 +1078,8 @@ void CHGrunt :: Precache()

PRECACHE_SOUND("zombie/claw_miss2.wav");// because we use the basemonster SWIPE animation event

PRECACHE_SOUND("hgrunt/gr_kick.wav");

// get voice pitch
if (RANDOM_LONG(0,1))
m_voicePitch = 109 + RANDOM_LONG(0,7);
Expand Down

0 comments on commit 0c61783

Please sign in to comment.