mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Remove unit's local event handler anticheat check
The createUnit remote execution locality exploit was fixed in current A2OA stable patch 131129: https://forums.bistudio.com/topic/186695-a2a2oa-patch-18122015/ This is now unnecessary and would needlessly restrict modders.
This commit is contained in:
@@ -4,7 +4,8 @@ class animal_DZ: CAAnimalBase
|
||||
{
|
||||
class Eventhandlers
|
||||
{
|
||||
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) and isServer) exitWith { _z call sched_co_deleteVehicle; };";
|
||||
//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) and isServer) exitWith { _z call sched_co_deleteVehicle; };";
|
||||
local = "_z = _this select 0; if ((_this select 1) and isServer) exitWith { _z call sched_co_deleteVehicle; };";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ class SurvivorW2_DZ: Soldier_Bodyguard_M4_PMC
|
||||
|
||||
class Eventhandlers
|
||||
{
|
||||
local = "_z = _this select 0; if (!isServer && {!isNull _z} && {!(side _z in [west,east,civilian])}) exitWith { PVDZ_sec_atp = ['wrong side', player]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };";
|
||||
//local = "_z = _this select 0; if (!isServer && {!isNull _z} && {!(side _z in [west,east,civilian])}) exitWith { PVDZ_sec_atp = ['wrong side', player]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };";
|
||||
};
|
||||
};
|
||||
class BanditW1_DZ: SurvivorW2_DZ
|
||||
|
||||
@@ -82,7 +82,7 @@ class Survivor_DZ : Civilian {
|
||||
|
||||
class Eventhandlers
|
||||
{
|
||||
local = "_z = _this select 0; if (!isServer && {!isNull _z} && {!(side _z in [west,east,civilian])}) exitWith { PVDZ_sec_atp = ['wrong side', player]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };";
|
||||
//local = "_z = _this select 0; if (!isServer && {!isNull _z} && {!(side _z in [west,east,civilian])}) exitWith { PVDZ_sec_atp = ['wrong side', player]; publicVariableServer 'PVDZ_sec_atp'; deleteVehicle _z; };";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "_this call zombie_initialize;";
|
||||
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 ((!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';";
|
||||
};
|
||||
|
||||
class HitPoints {
|
||||
|
||||
@@ -25,8 +25,8 @@ class WildZombie_Base : Zed_Base {
|
||||
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 ((!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';";
|
||||
|
||||
@@ -53,7 +53,8 @@ class zZombie_Base : Zed_Base {
|
||||
class Eventhandlers
|
||||
{
|
||||
init = "_this call zombie_initialize;";
|
||||
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 ((!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';";
|
||||
};
|
||||
|
||||
class HitPoints {
|
||||
|
||||
Reference in New Issue
Block a user