mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 03:16:27 +03:00
Add HALO spawn height config var
Height can be changed without overwriting player_monitor.fsm now.
Also
fixed my mistake from 3257d0f, need to HALO directly from debug pos for
antiTP compatibility.
This commit is contained in:
@@ -239,9 +239,14 @@ 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;
|
||||
_unit setpos [(_paraPosition select 0),(_paraPosition select 1),_alt];
|
||||
//_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 setvariable ["bis_fnc_halo_now",true];
|
||||
_unit allowDamage true;
|
||||
_unit spawn bis_fnc_halo;
|
||||
};
|
||||
//-------------
|
||||
|
||||
Reference in New Issue
Block a user