mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user