From ff37029f149849b495f71737f50b3ba8412b0336 Mon Sep 17 00:00:00 2001 From: Sam V Date: Mon, 9 Oct 2023 15:13:05 +0200 Subject: [PATCH] Fix human grunts continuing to fire for a few seconds after killing the last enemy in an area --- CHANGELOG.md | 1 + dlls/hgrunt.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5075955..325c736 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ * Prevent breakables from spawning multiple items when destroyed by gunfire and explosives at the same time (Thanks Oxofemple.) * Fixed save game system not saving arrays of EHANDLEs if the first half of the array contains null handles (mainly affected Nihilanth's spheres) [#224](https://github.com/SamVanheer/halflife-updated/issues/224) (Thanks Ronin4862) * Fixed player gaining health when drowning with god mode enabled and recovering health after surfacing (Thanks malortie) +* Fixed allied human grunts continuing to fire for a few seconds after killing the last enemy in an area [Opposing Force Updated #100](https://github.com/SamVanheer/halflife-op4-updated/issues/100) (Thanks Ronin4862 and malortie) ### Features diff --git a/dlls/hgrunt.cpp b/dlls/hgrunt.cpp index 67bbe86..2aa4d7e 100644 --- a/dlls/hgrunt.cpp +++ b/dlls/hgrunt.cpp @@ -1271,6 +1271,7 @@ Schedule_t slGruntCombatFail[] = Task_t tlGruntVictoryDance[] = { {TASK_STOP_MOVING, (float)0}, + {TASK_SET_ACTIVITY, (float)ACT_IDLE}, {TASK_FACE_ENEMY, (float)0}, {TASK_WAIT, (float)1.5}, {TASK_GET_PATH_TO_ENEMY_CORPSE, (float)0},