From a10472270a7caf2c8f5b6a63f85b1baaebc29137 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Tue, 10 Dec 2013 16:00:27 -0600 Subject: [PATCH] DZE_requireplot override var added = 0 disables requirement --- SQF/dayz_code/actions/player_build.sqf | 2 +- SQF/dayz_code/init/variables.sqf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index 8118ea940..1bdaf2173 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -99,7 +99,7 @@ if(isNumber (configFile >> "CfgVehicles" >> _classname >> "lockable")) then { _lockable = getNumber(configFile >> "CfgVehicles" >> _classname >> "lockable"); }; -_requireplot = 1; +_requireplot = DZE_requireplot; if(isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then { _requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot"); }; diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index f408e142b..fa3b5faec 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -659,6 +659,10 @@ if(!isDedicated) then { if(isNil "DZE_AntiWallLimit") then { DZE_AntiWallLimit = 1; }; + if(isNil "DZE_requireplot") then { + DZE_requireplot = 1; + }; + DZE_AntiWallCounter = 0;