Move HALO spawn below enableSimulation in player_monitor.fsm #1809

Fixes stuck floating in air on Napf when dayz_paraspawn = true; Should
also fix #1809.

Fixes #1809
This commit is contained in:
ebaydayz
2016-12-11 13:44:01 -05:00
parent 46355aed38
commit 3257d0fd88
2 changed files with 5 additions and 11 deletions

View File

@@ -20,5 +20,6 @@
[FIXED] Swimming in ground glitch when relogging at certain positions on certain maps like Napf and Tavi. @ebayShopper
[FIXED] No damage from hitting ground after HALO jump when DZE_HaloOpenChuteHeight was set to -1. @ebayShopper
[FIXED] Added back missing call to Epoch player_antiWall function for preventing base glitching. #1817 @ndavalos @ebayShopper
[FIXED] HALO fresh spawns stuck in air or failing to start correctly sometimes due to player simulation disabled. #1809 @oiad @ebayShopper
[INFO] See Documents\CHANGE LOG 1.0.6.txt for the full list of 1.0.5.1 --> 1.0.6 changes.

View File

@@ -989,16 +989,8 @@ class FSM
" };" \n
"} count allMissionObjects ""SpawnableWreck"";" \n
"{deleteVehicle _x} count (_setPos nearEntities [""zZombie_Base"",30]);" \n
"" \n
"if(dayz_paraSpawn && (freshSpawn == 2)) then {" \n
" player setDir _setDir;" \n
" player setPosATL [_setPos select 0,_setPos select 1,2000];" \n
" [player,2000] spawn BIS_fnc_halo;" \n
"} else {" \n
" player setDir _setDir;" \n
" player setPosATL [_setPos select 0,_setPos select 1,(_setPos select 2)+.1]; //Prevents swimming in ground glitch" \n
"};" \n
"" \n
"player setDir _setDir;" \n
"player setPosATL [_setPos select 0,_setPos select 1,(_setPos select 2)+.1]; //Prevents swimming in ground glitch" \n
"player setVelocity [0,0,0.5];" \n
"{player reveal _x} count _torev4l;" \n
"dayz_myPosition = _setPos;" \n
@@ -1176,7 +1168,8 @@ class FSM
"" \n
"{ _x call fnc_veh_ResetEH; } forEach vehicles;" \n
"player allowDamage true;" \n
"player enableSimulation true;"/*%FSM</STATEINIT""">*/;
"player enableSimulation true;" \n
"if (dayz_paraSpawn && freshSpawn == 2) then {[player,2000] spawn BIS_fnc_halo;};"/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links
{