Fix human grunts continuing to fire for a few seconds after killing the last enemy in an area

This commit is contained in:
Sam V 2023-10-09 15:13:05 +02:00
parent 3718cf2659
commit ff37029f14
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@
* Prevent breakables from spawning multiple items when destroyed by gunfire and explosives at the same time (Thanks Oxofemple.) * 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 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 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 ### Features

View file

@ -1271,6 +1271,7 @@ Schedule_t slGruntCombatFail[] =
Task_t tlGruntVictoryDance[] = Task_t tlGruntVictoryDance[] =
{ {
{TASK_STOP_MOVING, (float)0}, {TASK_STOP_MOVING, (float)0},
{TASK_SET_ACTIVITY, (float)ACT_IDLE},
{TASK_FACE_ENEMY, (float)0}, {TASK_FACE_ENEMY, (float)0},
{TASK_WAIT, (float)1.5}, {TASK_WAIT, (float)1.5},
{TASK_GET_PATH_TO_ENEMY_CORPSE, (float)0}, {TASK_GET_PATH_TO_ENEMY_CORPSE, (float)0},