mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix swimming in ground glitch at certain spots on Napf
This commit is contained in:
@@ -113,12 +113,7 @@ _switchUnit = {
|
||||
_rndx = floor(random 100);
|
||||
_rndy = floor(random 100);
|
||||
_oldUnit setPosATL [(respawn_west_original select 0) + _rndx, (respawn_west_original select 1) + _rndy, 0];
|
||||
if (surfaceIsWater respawn_west_original) then {
|
||||
//Prevent swimming in ground glitch if respawn is in water
|
||||
_newUnit setPosATL [_position select 0,_position select 1,(_position select 2)+.1];
|
||||
} else {
|
||||
_newUnit setPosATL _position;
|
||||
};
|
||||
_newUnit setPosATL [_position select 0,_position select 1,(_position select 2)+.1]; //Prevents swimming in ground glitch
|
||||
removeAllWeapons _oldUnit;
|
||||
{_oldUnit removeMagazine _x;} count magazines _oldUnit;
|
||||
if !(isNull _oldUnit) then {deleteVehicle _oldUnit;};
|
||||
|
||||
Reference in New Issue
Block a user