mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-14 20:22:56 +03:00
Roll back to old swimming in ground fix
See
e8e5d24e80 (commitcomment-19053648)
comments
This commit is contained in:
@@ -36,5 +36,5 @@ _fires = [
|
||||
_object setPos (_x select 1);
|
||||
_object allowDamage false;
|
||||
if !(_type in _fires) then {_object enableSimulation false;};
|
||||
_object setVariable ["", true]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn
|
||||
_object setVariable ["",true,false]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn
|
||||
} count _this;
|
||||
18
SQF/dayz_code/system/mission/debug_floor.sqf
Normal file
18
SQF/dayz_code/system/mission/debug_floor.sqf
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
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,2];
|
||||
_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
|
||||
_floor hideObject true;
|
||||
};
|
||||
@@ -1966,12 +1966,7 @@ class FSM
|
||||
"Dayz_logonTown = ""Wilderness"";" \n
|
||||
"if (count _nearestCity > 0) then {Dayz_logonTown = text (_nearestCity select 0)};" \n
|
||||
"" \n
|
||||
"[_world,Dayz_logonTown,format[localize ""str_player_06"",dayz_Survived]] spawn {" \n
|
||||
" uiSleep 1;" \n
|
||||
" if (dayz_isSwimming && !surfaceIsWater (getPosASL player)) then {player setPosATL [getPosATL player select 0,getPosATL player select 1,(getPosATL player select 2)+.1];}; //Fix swimming in ground glitch on some maps" \n
|
||||
" uiSleep 4;" \n
|
||||
" _this spawn BIS_fnc_infoText;" \n
|
||||
"};" \n
|
||||
"[_world,Dayz_logonTown,format[localize ""str_player_06"",dayz_Survived]] spawn {uiSleep 5; _this spawn BIS_fnc_infoText;};" \n
|
||||
"" \n
|
||||
"dayz_myPosition = getPosATL player;" \n
|
||||
"Dayz_loginCompleted = true;" \n
|
||||
|
||||
Reference in New Issue
Block a user