mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Prevent sprint and prone through doors glitch
This commit is contained in:
@@ -139,9 +139,12 @@ if (isNil "keyboard_keys") then {
|
|||||||
};
|
};
|
||||||
_drop = {
|
_drop = {
|
||||||
if (r_drag_sqf) then {
|
if (r_drag_sqf) then {
|
||||||
_doors = nearestObjects [player, DayZ_DropDrageeObjects, 3]; //Prevent exploit of glitching through doors
|
_doors = nearestObjects [player, DayZ_DropDrageeObjects, 3]; //Prevent dropping dragged player through objects
|
||||||
if (count _doors > 0) then {_handled = true;};
|
if (count _doors > 0) then {_handled = true;};
|
||||||
force_dropBody = true;
|
force_dropBody = true;
|
||||||
|
} else {
|
||||||
|
_doors = nearestObjects [player, DZE_DoorsLocked, 3];
|
||||||
|
if (count _doors > 0 && {speed player > 0}) then {_handled = true;}; //Prevent sprint and prone through doors glitch
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
_interrupt = {
|
_interrupt = {
|
||||||
|
|||||||
Reference in New Issue
Block a user