From f92d84f720e68ba67ad4f81a8eb1ae9218cc1abf Mon Sep 17 00:00:00 2001 From: icomrade Date: Wed, 26 Oct 2016 16:58:06 -0400 Subject: [PATCH] Fix issue laying down near buildables --- SQF/dayz_code/compile/keyboard.sqf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/keyboard.sqf b/SQF/dayz_code/compile/keyboard.sqf index a329b9850..6846aa01e 100644 --- a/SQF/dayz_code/compile/keyboard.sqf +++ b/SQF/dayz_code/compile/keyboard.sqf @@ -176,9 +176,11 @@ if (isNil "keyboard_keys") then { }; }; _drop = { - _doors = nearestObjects [player, DayZ_DropDrageeObjects, 3]; //Prevent exploit of glitching through doors - if (count _doors > 0) then {_handled = true;}; - force_dropBody = true; + if (r_drag_sqf) then { + _doors = nearestObjects [player, DayZ_DropDrageeObjects, 3]; //Prevent exploit of glitching through doors + if (count _doors > 0) then {_handled = true;}; + force_dropBody = true; + }; }; _interrupt = { if (vehicle player == player) then { //allow med actions in moving vehicles