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

@@ -52,8 +52,8 @@ class zZombie_Base : Zed_Base {
class Eventhandlers
{
init = "_this execFSM ""\z\AddOns\dayz_code\system\zombie_agent.fsm""";
local = "_z = _this select 0; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [_z,true] execFSM '\z\AddOns\dayz_code\system\zombie_agent.fsm';";
init = "_this call zombie_initialize;";
local = "_z = _this select 0; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [_z,true] call zombie_initialize;";
HandleDamage = "_this call local_zombieDamage;";
Killed = "[_this,'zombieKills'] call local_eventKill;";
};