Fix wrong eventhandlers on viral zeds #1819

This commit is contained in:
ebaydayz
2016-12-29 20:53:35 -05:00
parent b355ae6a61
commit 101a6fc698
4 changed files with 11 additions and 15 deletions

View File

@@ -23,14 +23,11 @@ class WildZombie_Base : Zed_Base {
forcedSpeed = 6;
class Eventhandlers {
init = "_this call zombie_initialize;";
local = "_z = _this select 0;" \n
// "if ((!isServer and !isNull _z) and {(side _z != civilian)}) exitWith { " \n
// "PVDZ_sec_atp = [ 'wrong side', player ]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };" \n
"if (!(_this select 1)) exitWith {};" \n
"if (isServer) exitWith { _z call sched_co_deleteVehicle; };" \n
"[(position _z), _z, true] execFSM '\z\AddOns\dayz_code\system\zombie_wildagent.fsm';";
//if(_this select 1) then {[(position (_this select 0)),(_this select 0),true] execFSM '\z\AddOns\dayz_code\system\zombie_wildagent.fsm'};";
init = "if (isNil 'dayz_clientPreload') then {dayz_clientPreload = false;}; _this execFSM ""\z\AddOns\dayz_code\system\zombie_wildagent.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_wildagent.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_wildagent.fsm';";
HandleDamage = "_this call local_zombieDamage;";
Killed = "[_this,'zombieKills'] call local_eventKill;";
};
class HitPoints {