mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Set unit posATL in switchModel if respawn is in water
Reverts:bcc16a0135See:e8e5d24e80
This commit is contained in:
@@ -108,7 +108,12 @@ _switchUnit = {
|
||||
_rndx = floor(random 100);
|
||||
_rndy = floor(random 100);
|
||||
_oldUnit setPosATL [(_createSafePos select 0) + _rndx, (_createSafePos select 1) + _rndy, 0];
|
||||
if (surfaceIsWater _createSafePos) 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;
|
||||
};
|
||||
removeAllWeapons _oldUnit;
|
||||
{_oldUnit removeMagazine _x;} count magazines _oldUnit;
|
||||
if !(isNull _oldUnit) then {deleteVehicle _oldUnit;};
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
/*
|
||||
Fixes swimming in ground after spawn, change clothes or relog
|
||||
on maps with respawn_west position in water.
|
||||
*/
|
||||
|
||||
private ["_debug","_floor"];
|
||||
|
||||
_debug = getMarkerPos "respawn_west";
|
||||
|
||||
if (surfaceIsWater _debug) then {
|
||||
_debug set [2,0.1];
|
||||
_floor = "MetalFloor_DZ" createVehicleLocal [0,0,0];
|
||||
_floor setPosASL _debug;
|
||||
_floor allowDamage false;
|
||||
_floor enableSimulation false;
|
||||
_floor setVariable ["",true,false]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn
|
||||
};
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\takistan.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\mountains_acr.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus11.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\isladuala.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\tavi.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\namalsk.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\panthera2.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus17.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\fdf_isle1_a.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\utes.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\fapovo.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\caribou.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\smd_sahrani_a2.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\cmr_ovaron.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\napf.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\sauerland.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\sauerland.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\shapur_baf.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\zargabad.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\bootcamp_acr.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\lingor.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\provinggrounds_pmc.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ progressLoadingScreen 0.2;
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\init.sqf";
|
||||
progressLoadingScreen 0.25;
|
||||
call compile preprocessFileLineNumbers "server_traders.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\debug_floor.sqf";
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\woodland_acr.sqf"; //Add trader city objects locally on each machine early
|
||||
initialized = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user