Set unit posATL in switchModel if respawn is in water

Reverts:

bcc16a0135

See:

e8e5d24e80
This commit is contained in:
ebaydayz
2016-09-17 15:41:49 -04:00
parent 5f0c2fcc49
commit 29d9ed9211
25 changed files with 6 additions and 41 deletions

View File

@@ -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
};