From a4ade2308685bba6180ba2b1519855daad74ff21 Mon Sep 17 00:00:00 2001 From: Mikeeeyy Date: Tue, 29 Jul 2014 17:47:29 +0100 Subject: [PATCH] Update dayz_spaceInterrupt.sqf Changed starts at line 87 and end at line 93. Fix for glitching through doors. --- SQF/dayz_code/actions/dayz_spaceInterrupt.sqf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SQF/dayz_code/actions/dayz_spaceInterrupt.sqf b/SQF/dayz_code/actions/dayz_spaceInterrupt.sqf index 53de8087d..53666c72e 100644 --- a/SQF/dayz_code/actions/dayz_spaceInterrupt.sqf +++ b/SQF/dayz_code/actions/dayz_spaceInterrupt.sqf @@ -84,6 +84,14 @@ if (_dikCode in actionKeys "MoveLeft") exitWith {r_interrupt = true; if (DZE_Sur if (_dikCode in actionKeys "MoveRight") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};}; if (_dikCode in actionKeys "MoveBack") exitWith {r_interrupt = true; if (DZE_Surrender) then {call dze_surrender_off};}; +//Prevent exploit of glitching through doors +if (_dikCode in actionKeys "Prone") then { + _doors = nearestObjects [player, DZE_DoorsLocked, 3]; + if (count _doors > 0) then { + _handled = true; + }; +}; + //Prevent exploit of drag body if ((_dikCode in actionKeys "Prone") && r_drag_sqf) exitWith { force_dropBody = true; }; if ((_dikCode in actionKeys "Crouch") && r_drag_sqf) exitWith { force_dropBody = true; };