mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
Fix undefined var dayz_clientPreload during intro.sqs
This commit is contained in:
@@ -52,7 +52,7 @@ class zZombie_Base : Zed_Base {
|
||||
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "_this execFSM ""\z\AddOns\dayz_code\system\zombie_agent.fsm""";
|
||||
init = "if (isNil 'dayz_clientPreload') then {dayz_clientPreload = false;}; _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;";
|
||||
|
||||
Reference in New Issue
Block a user