From dbdcad75eb91a14a592c3420841b7244e050c8ee Mon Sep 17 00:00:00 2001 From: HARLAN Date: Sun, 15 Dec 2013 19:58:13 -0500 Subject: [PATCH 1/2] restore hedgehog requiring plot --- SQF/dayz_code/Configs/cfgVehicles.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/SQF/dayz_code/Configs/cfgVehicles.hpp b/SQF/dayz_code/Configs/cfgVehicles.hpp index ab8831f05..8fad3fab4 100644 --- a/SQF/dayz_code/Configs/cfgVehicles.hpp +++ b/SQF/dayz_code/Configs/cfgVehicles.hpp @@ -1475,7 +1475,6 @@ class CfgVehicles { vehicleClass = "Fortifications"; constructioncount = 1; removeoutput[] = {{"ItemTankTrap",1}}; - requireplot = 0; nounderground = 0; }; // WorkBench_DZ From 58f89d8d6103a84cb64f75a14a95acbd9b88b81a Mon Sep 17 00:00:00 2001 From: HARLAN Date: Sun, 15 Dec 2013 19:58:59 -0500 Subject: [PATCH 2/2] remove allowing tanktraps on roads --- SQF/dayz_code/actions/player_build.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index e25b2a0e0..c74fcf43e 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -372,9 +372,9 @@ if (_hasrequireditem) then { }; }; - // No building on roads for most items + //No building on roads unless toggled if (!DZE_BuildOnRoads) then { - if ((isOnRoad _position) and (_classname!="Hedgehog_DZ")) then { _cancel = true; _reason = "Cannot build on a road."; }; + if (isOnRoad _position) then { _cancel = true; _reason = "Cannot build on a road."; }; }; // No building in trader zones