mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +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
|
||||
"};" \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>*/
|
||||
|
||||
Reference in New Issue
Block a user