mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix halo spawn
This commit is contained in:
@@ -747,16 +747,7 @@ class FSM
|
||||
"if (isNil ""freshSpawn"") then {" \n
|
||||
" freshSpawn = 0;" \n
|
||||
"};" \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;" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"" \n
|
||||
"{" \n
|
||||
" if (player getVariable[""hit_""+_x,false]) then { " \n
|
||||
" [player,_x,_x] spawn fnc_usec_damageBleed; " \n
|
||||
@@ -786,7 +777,7 @@ class FSM
|
||||
"" \n
|
||||
"if ((_isNew) OR (count _inventory == 0)) then {" \n
|
||||
" //player is new, add initial loadout" \n
|
||||
" if(!(player isKindOf ""PZombie_VB"")) then {" \n
|
||||
" if !(player isKindOf ""PZombie_VB"") then {" \n
|
||||
" _config = (configFile >> ""CfgSurvival"" >> ""Inventory"" >> ""Default"");" \n
|
||||
" _totalrndmags = getNumber (_config >> ""RandomMagazines"");" \n
|
||||
" _rndmags = getArray (_config >> ""RandomPossibilitieMagazines"");" \n
|
||||
@@ -997,8 +988,19 @@ class FSM
|
||||
" };" \n
|
||||
"} count allMissionObjects ""SpawnableWreck"";" \n
|
||||
"{deleteVehicle _x} count (_setPos nearEntities [""zZombie_Base"",30]);" \n
|
||||
"player setDir _setDir;" \n
|
||||
"player setPosATL _setPos;" \n
|
||||
"diag_log [ 'resetting keyboard events',(MISSION_ROOT+'keyboard.sqf')];" \n
|
||||
"keyboard_keys = nil;" \n
|
||||
"[controlNull, 1, false,false,false] call compile preprocessFileLineNumbers (MISSION_ROOT+'keyboard.sqf');" \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;" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"player setVelocity [0,0,0.5];" \n
|
||||
"{player reveal _x} count _torev4l;" \n
|
||||
"dayz_myPosition = _setPos;" \n
|
||||
@@ -1180,9 +1182,6 @@ class FSM
|
||||
"{ _x call fnc_veh_ResetEH; } forEach vehicles;" \n
|
||||
"player allowDamage true;" \n
|
||||
"player enableSimulation true;" \n
|
||||
"diag_log [ 'resetting keyboard events',(MISSION_ROOT+'keyboard.sqf')];" \n
|
||||
"keyboard_keys = nil;" \n
|
||||
"[controlNull, 1, false,false,false] call compile preprocessFileLineNumbers (MISSION_ROOT+'keyboard.sqf');" \n
|
||||
""/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
|
||||
Reference in New Issue
Block a user