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:
ebaydayz
2017-02-01 20:36:00 -05:00
parent 6aa5c9b64f
commit 097a02b19a
8 changed files with 19 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
// Moved from config to allow admins to modify
// Put agent second for compatibility with old configs like Namalsk custom zombies.
if (count _this == 1) then {
//Called from init EH
["", (_this select 0)] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";
} else {
//Called from local EH
["", (_this select 0), true] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";
};