Update zombie generate

Vanilla commits:

09aa9f8879

68be696c4d
This commit is contained in:
ebaydayz
2016-11-21 18:33:41 -05:00
parent 2924daf0c4
commit 6853263f3d
6 changed files with 6 additions and 36 deletions

View File

@@ -52,9 +52,11 @@ class zZombie_Base : Zed_Base {
class Eventhandlers
{
init = "_this call zombie_initialize;";
init = "_this execFSM ""\z\AddOns\dayz_code\system\zombie_agent.fsm""";
//local = "_z = _this select 0; if ((!isServer and !isNull _z) and {(side _z != civilian)}) exitWith { PVDZ_sec_atp = [ 'wrong side', player ]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; }; if (!(_this select 1)) exitWith {}; if (isServer) exitWith { _z call sched_co_deleteVehicle; }; [(position _z), _z, true] 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; }; [(position _z), _z, true] execFSM '\z\AddOns\dayz_code\system\zombie_agent.fsm';";
HandleDamage = "_this call local_zombieDamage;";
Killed = "[_this,'zombieKills'] call local_eventKill;";
};
class UserActions