From 0c61783860f83c1063113bee6a5152aabb9ec1a7 Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Sun, 24 Nov 2024 23:12:42 +0000 Subject: [PATCH] Add hgrunt kick sound --- SourceCode/dlls/hgrunt.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SourceCode/dlls/hgrunt.cpp b/SourceCode/dlls/hgrunt.cpp index 1b237f00..9a2cdeaf 100644 --- a/SourceCode/dlls/hgrunt.cpp +++ b/SourceCode/dlls/hgrunt.cpp @@ -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; @@ -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);