From 0802ecc0ed05f660f7f7869f5a9617aab8bc9b7e Mon Sep 17 00:00:00 2001 From: icomrade Date: Wed, 14 Sep 2016 17:48:23 -0400 Subject: [PATCH] Do not require plot to build traps --- SQF/dayz_code/Configs/CfgVehicles/Traps.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/Configs/CfgVehicles/Traps.hpp b/SQF/dayz_code/Configs/CfgVehicles/Traps.hpp index 6e62e8af7..0daf2bc34 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Traps.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Traps.hpp @@ -11,7 +11,8 @@ class BearTrap_DZ : TrapItems { initState = 0; // initial armed state singleUse = 0; nounderground = 0; - + requireplot = 0; + class Eventhandlers { init = "['init', _this select 0] spawn beartrap;"; }; @@ -122,6 +123,7 @@ class TrapBearTrapFlare : TrapItems { displayName = $STR_ITEM_NAME_BEAR_TRAP_FLARE; vehicleClass = "Fortifications"; nounderground = 0; + requireplot = 0; script = "beartrapflare"; // compiled script variable name (used by server side loop) initState = 1; // initial armed state @@ -172,6 +174,7 @@ class TrapBearTrapSmoke : TrapItems { displayName = $STR_ITEM_NAME_BEAR_TRAP_SMOKE; vehicleClass = "Fortifications"; nounderground = 0; + requireplot = 0; script = "beartrapsmoke"; // compiled script variable name (used by server side loop) initState = 1; // initial armed state @@ -226,6 +229,7 @@ class Trap_Cans : TrapItems { script = "tripcans"; // compiled script variable name (used by server side loop) initState = 1; // initial armed state singleUse = 0; + requireplot = 0; class Eventhandlers { init = "['init', _this select 0] spawn tripcans;"; @@ -276,6 +280,7 @@ class TrapTripwireFlare : TrapItems { script = "tripflare"; // compiled script variable name (used by server side loop) initState = 1; // initial armed state singleUse = 0; + requireplot = 0; class Eventhandlers { init = "['init', _this select 0] spawn tripflare;"; @@ -326,6 +331,7 @@ class TrapTripwireGrenade : TrapItems { script = "tripgrenade"; // compiled script variable name (used by server side loop) initState = 1; // initial armed state singleUse = 0; + requireplot = 0; class Eventhandlers { init = "['init', _this select 0] spawn tripgrenade;"; @@ -376,6 +382,7 @@ class TrapTripwireSmoke : TrapItems { script = "tripsmoke"; // compiled script variable name (used by server side loop) initState = 1; // initial armed state singleUse = 0; + requireplot = 0; class Eventhandlers { init = "['init', _this select 0] spawn tripsmoke;";