mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Make zombie_agent.fsm customizable for admins #1877
Also fixed HandleDamage EH was added twice. We moved it to the configs
and forgot to take it out of the FSM in 6853263.
This commit is contained in:
@@ -140,9 +140,6 @@ class FSM
|
||||
"_bodyStay = 60;" \n
|
||||
"" \n
|
||||
"_timeN = time;" \n
|
||||
"" \n
|
||||
" _id = _agent addeventhandler [""HandleDamage"",{_this call local_zombieDamage}];" \n
|
||||
"" \n
|
||||
"//hint ""run local zombie"";" \n
|
||||
"_isSomeone = true;" \n
|
||||
"" \n
|
||||
|
||||
@@ -211,11 +211,11 @@ class FSM
|
||||
class init
|
||||
{
|
||||
name = "init";
|
||||
init = /*%FSM<STATEINIT""">*/"_agent = _this select 0;" \n
|
||||
init = /*%FSM<STATEINIT""">*/"_agent = _this select 1; //Compatible with old configs like Namalsk's custom zombies" \n
|
||||
"_position = _agent modelToWorld [0,0,0];" \n
|
||||
"_secondHand = false;" \n
|
||||
"" \n
|
||||
"if (count _this > 1) then {" \n
|
||||
"if (count _this > 2) then {" \n
|
||||
" _secondHand = true;" \n
|
||||
" diag_log (""Second Hand Zombie Initialized: "" + str(_this));" \n
|
||||
"};"/*%FSM</STATEINIT""">*/;
|
||||
@@ -475,9 +475,6 @@ class FSM
|
||||
"_timeN = diag_tickTime;" \n
|
||||
"" \n
|
||||
"_agent setBehaviour ""CARELESS"";" \n
|
||||
"" \n
|
||||
" _id = _agent addeventhandler [""HandleDamage"",{_this call local_zombieDamage}];" \n
|
||||
"" \n
|
||||
"//hint ""run local zombie"";" \n
|
||||
"_isSomeone = true;" \n
|
||||
"" \n
|
||||
|
||||
@@ -282,9 +282,6 @@ class FSM
|
||||
"_agent disableAI ""FSM"";" \n
|
||||
"_newDest = getPosATL _agent;" \n
|
||||
"_timeN = time;" \n
|
||||
"" \n
|
||||
" _id = _agent addeventhandler [""HandleDamage"",{_this call local_zombieDamage}];" \n
|
||||
"" \n
|
||||
"_target = objNull;" \n
|
||||
"_targetPos = [];" \n
|
||||
"_countr = 0;" \n
|
||||
|
||||
Reference in New Issue
Block a user