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