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

@@ -239,14 +239,8 @@ if (typename _this == typename []) then {
//--- Free fall
if (count _this == 2) exitwith { //Fresh spawn calling from player_monitor.fsm
_alt = _this select 1;
_unit allowDamage false;
_paraPosition = [_unit] call FNC_GetPos;
//_paraPosition set [2,_alt];
_para = createVehicle ["ParachuteWest", _paraPosition, [], 0, "CAN_COLLIDE"];
_para setpos _paraPosition;
_unit moveindriver _para; //Workaround for stuck swimming in air on maps with respawn_west in water. Can't setPos to ground first because antiTP blocks it.
_unit call fn_exitSwim;
_unit setvariable ["bis_fnc_halo_now",true];
_unit allowDamage true;
_unit spawn bis_fnc_halo;
};
//-------------