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.
This commit is contained in:
worldwidesorrow authored and GitHub committed 2020-01-21 12:15:58 -06:00
1 parent bfea89c5b6
commit a056fc44bd
1 file changed
+5 -3
+5 -3
View File
@@ -983,9 +983,11 @@ class FSM
" [_agent,""spotted"",0,false] call dayz_zombieSpeak;" \n " [_agent,""spotted"",0,false] call dayz_zombieSpeak;" \n
"};" \n "};" \n
"" \n "" \n
"if (!_hasMoved) then {" \n "// _hasMoved needs to be set to true for all zombies." \n
" _agent setVariable[""doLoiter"",true,true];" \n "_hasMoved = true;" \n
"};" \n "" \n
"// doLoiter variable can be destroyed. It is not used anymore." \n
"_agent setVariable[""doLoiter"",nil];" \n
"" \n "" \n
"_myDest = [ _agent modelToWorld [0,0,0]];" \n "_myDest = [ _agent modelToWorld [0,0,0]];" \n
"_agent setVariable [""myDest"",(_agent modelToWorld [0,0,0])];" \n "_agent setVariable [""myDest"",(_agent modelToWorld [0,0,0])];" \n