mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 18:19: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:
1 parent
84d549d0a1
commit
c7d9741be4
1 file changed
+1
-1
@@ -159,7 +159,7 @@ if (count _this > 4) then { //calling from player_onDisconnect
|
|||||||
};
|
};
|
||||||
if (_isInVehicle) then {
|
if (_isInVehicle) then {
|
||||||
//if the player object is inside a vehicle lets eject the player
|
//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];
|
_character action ["eject", vehicle _character];
|
||||||
|
|
||||||
// Prevent relog in parachute, heli or plane above base exploit to get inside
|
// Prevent relog in parachute, heli or plane above base exploit to get inside
|
||||||
|
|||||||
Reference in new issue
Block a user