mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user