mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Roll back to old swimming in ground fix
See
e8e5d24e80 (commitcomment-19053648)
comments
This commit is contained in:
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;
|
||||
};
|
||||
Reference in New Issue
Block a user