Add height check for logout in air vehicle exploit

This prevents players who logout in grounded air vehicles from being relocated.
This commit is contained in:
ebaydayz
2016-10-25 18:48:54 -04:00
committed by GitHub
parent 84d549d0a1
commit c7d9741be4

View File

@@ -159,7 +159,7 @@ if (count _this > 4) then { //calling from player_onDisconnect
};
if (_isInVehicle) then {
//if the player object is inside a vehicle lets eject the player
_relocate = if (vehicle _character isKindOf "Air") then {true} else {false};
_relocate = if ((vehicle _character isKindOf "Air") && (_charPos select 2 > 1.5)) then {true} else {false};
_character action ["eject", vehicle _character];
// Prevent relog in parachute, heli or plane above base exploit to get inside
@@ -243,4 +243,4 @@ if (DZE_groupManagement) then { //update player group
};
// Force gear updates for nearby vehicles/tents
{[_x,"gear"] call server_updateObject;} count nearestObjects [_charPos,DayZ_GearedObjects,10];
{[_x,"gear"] call server_updateObject;} count nearestObjects [_charPos,DayZ_GearedObjects,10];