Add reliable workaround for swimming in ground and air issue

Fixes #1913
This commit is contained in:
ebayShopper
2017-03-23 15:58:14 -04:00
parent 665ecd9146
commit 6a711deccc
7 changed files with 17 additions and 21 deletions

View File

@@ -268,16 +268,4 @@ array_reduceSize = {
// Precise base building 1.0.5
call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\kk_functions.sqf";
#include "mission_check.sqf"
/*
Create platform if respawn_west position is in water
Makes sure player is standing instead of swimming when teleported to land or air
*/
private "_platform";
if (surfaceIsWater respawn_west_original) then {
_platform = createVehicle ["Land_Dirthump01",[0,0,0],[],0,"CAN_COLLIDE"];
_platform setPosASL [respawn_west_original select 0, respawn_west_original select 1, -0.1];
_platform setVehicleInit "this enableSimulation false;this allowDamage false;";
processInitCommands;
};
#include "mission_check.sqf"