mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 18:36:29 +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;
|
||||
};
|
||||
//-------------
|
||||
|
||||
@@ -51,7 +51,8 @@ MaxMineVeins = 50; // Max number of random mine veins to spawn around the map
|
||||
|
||||
// HALO Jump
|
||||
DZE_HaloAltitudeMeter = false; // Display altitude and speed on screen while in halo jump.
|
||||
DZE_HaloOpenChuteHeight = 180; // Automatically open chute at specified height. Set to -1 to disable this feature.
|
||||
DZE_HaloOpenChuteHeight = 180; // Automatically open chute at specified height. Set to -1 to disable this feature.
|
||||
DZE_HaloSpawnHeight = 2000; // This is the altitude fresh spawn players start at when HALO spawn is enabled.
|
||||
DZE_HaloJump = true; // Enable halo jumping out of air vehicles above 400m
|
||||
|
||||
// Trader Menu
|
||||
|
||||
@@ -990,7 +990,13 @@ class FSM
|
||||
"} count allMissionObjects ""SpawnableWreck"";" \n
|
||||
"{deleteVehicle _x} count (_setPos nearEntities [""zZombie_Base"",30]);" \n
|
||||
"player setDir _setDir;" \n
|
||||
"player setPosATL [_setPos select 0,_setPos select 1,(_setPos select 2)+.1]; //Prevents swimming in ground glitch" \n
|
||||
"" \n
|
||||
"if (dayz_paraSpawn && freshSpawn == 2) then {" \n
|
||||
" player setPosATL [_setPos select 0,_setPos select 1,DZE_HaloSpawnHeight];" \n
|
||||
"} else {" \n
|
||||
" player setPosATL [_setPos select 0,_setPos select 1,(_setPos select 2)+.1]; //Prevents swimming in ground glitch" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"player setVelocity [0,0,0.5];" \n
|
||||
"{player reveal _x} count _torev4l;" \n
|
||||
"dayz_myPosition = _setPos;" \n
|
||||
@@ -1169,7 +1175,7 @@ class FSM
|
||||
"{ _x call fnc_veh_ResetEH; } forEach vehicles;" \n
|
||||
"player allowDamage true;" \n
|
||||
"player enableSimulation true;" \n
|
||||
"if (dayz_paraSpawn && freshSpawn == 2) then {[player,2000] spawn BIS_fnc_halo;};"/*%FSM</STATEINIT""">*/;
|
||||
"if (dayz_paraSpawn && freshSpawn == 2) then {[player,DZE_HaloSpawnHeight] spawn BIS_fnc_halo;}; //Start after enableSimulation"/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user