From a056fc44bdf185cf29c183801dfb9880848c5466 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Tue, 21 Jan 2020 12:15:58 -0600 Subject: [PATCH] Update zombie_agent.fsm Variable _hasMoved needs to be set to true for internal zombies after initial aggro. Internal zombies become loiterers once they have moved from their original positions. Variable "doLoiter" can be destroyed after initial aggro. It is not used anymore. --- SQF/dayz_code/system/zombie_agent.fsm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/system/zombie_agent.fsm b/SQF/dayz_code/system/zombie_agent.fsm index 08954de1e..eb78b6780 100644 --- a/SQF/dayz_code/system/zombie_agent.fsm +++ b/SQF/dayz_code/system/zombie_agent.fsm @@ -983,9 +983,11 @@ class FSM " [_agent,""spotted"",0,false] call dayz_zombieSpeak;" \n "};" \n "" \n - "if (!_hasMoved) then {" \n - " _agent setVariable[""doLoiter"",true,true];" \n - "};" \n + "// _hasMoved needs to be set to true for all zombies." \n + "_hasMoved = true;" \n + "" \n + "// doLoiter variable can be destroyed. It is not used anymore." \n + "_agent setVariable[""doLoiter"",nil];" \n "" \n "_myDest = [ _agent modelToWorld [0,0,0]];" \n "_agent setVariable [""myDest"",(_agent modelToWorld [0,0,0])];" \n @@ -1123,4 +1125,4 @@ class FSM "End", }; }; -/*%FSM*/ \ No newline at end of file +/*%FSM*/