From cc28d43d25f1ffe7e4dbf5b535a9fbd2c08bfaed Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 27 Sep 2016 16:04:14 -0400 Subject: [PATCH] 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. --- SQF/dayz_code/Configs/CfgVehicles/Animal.hpp | 3 ++- SQF/dayz_code/Configs/CfgVehicles/DZE/Females.hpp | 2 +- SQF/dayz_code/Configs/CfgVehicles/Skins.hpp | 2 +- SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp | 3 ++- SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp | 4 ++-- SQF/dayz_code/Configs/CfgVehicles/Zeds/Zeds.hpp | 3 ++- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp b/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp index bbc94458c..47f33f5f4 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Animal.hpp @@ -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; };"; }; }; diff --git a/SQF/dayz_code/Configs/CfgVehicles/DZE/Females.hpp b/SQF/dayz_code/Configs/CfgVehicles/DZE/Females.hpp index 418a7bd83..668e5d0b1 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/DZE/Females.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/DZE/Females.hpp @@ -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 diff --git a/SQF/dayz_code/Configs/CfgVehicles/Skins.hpp b/SQF/dayz_code/Configs/CfgVehicles/Skins.hpp index d17b00347..b608b5057 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Skins.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Skins.hpp @@ -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; };"; }; }; diff --git a/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp b/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp index ef5a15aba..70367fc4a 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Zeds/ViralZeds.hpp @@ -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 { diff --git a/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp b/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp index e0af21ec9..f034bcc1a 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Zeds/WildZeds.hpp @@ -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';"; diff --git a/SQF/dayz_code/Configs/CfgVehicles/Zeds/Zeds.hpp b/SQF/dayz_code/Configs/CfgVehicles/Zeds/Zeds.hpp index 4172adedf..2e37f794a 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Zeds/Zeds.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Zeds/Zeds.hpp @@ -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 {