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
2020-01-21 12:15:58 -06:00
committed by GitHub
parent bfea89c5b6
commit a056fc44bd

View File

@@ -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</COMPILE>*/
/*%FSM</COMPILE>*/