This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
62 lines (50 loc) · 2 KB
/
init.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "USERSCRIPTS\missionsettings.sqf";
//LOADOUTS =====================================================================
["BLU_F", LOADOUTFACTIONBLU] call GRAD_Loadout_fnc_FactionSetLoadout;
["OPF_F", LOADOUTFACTIONOPF] call GRAD_Loadout_fnc_FactionSetLoadout;
//ENGIMA TRAFFIC ===============================================================
CIVILIAN_TRAFFIC = paramsArray select 2;
if (CIVILIAN_TRAFFIC == 1) then {
[] execVM "Engima\Traffic\Init.sqf";
};
//SERVER ONLY ==================================================================
if (isServer) then {
_wshndl = [] execVM "helpers\wavesize.sqf";
waitUntil {scriptDone _wshndl};
SHOWCARRIERMARKER = (paramsArray select 1) == 1;
publicVariable "SHOWCARRIERMARKER";
OPFOR_ELIMINATED = false;
BLUFOR_ELIMINATED = false;
ENDINDRAW = false;
publicVariable "OPFOR_ELIMINATED";
publicVariable "BLUFOR_ELIMINATED";
publicVariable "ENDINDRAW";
// civilian traffic
CIV_KILLED_POS = [0,0,0];
publicVariable "CIV_KILLED_POS";
CIV_GUNFIGHT_POS = [0,0,0];
publicVariable "CIV_GUNFIGHT_POS";
addMissionEventHandler ["HandleDisconnect", {[_this select 3] spawn mcd_fnc_handleRespawned}];
if (isClass (configFile >> "CfgPatches" >> "task_force_radio")) then {
[] execVM "server\tfarsettings.sqf";
};
//setup scripts
[] execVM "server\killableLaptops.sqf";
[] execVM "server\removeFromCleanup.sqf";
[] execVM "server\clearVehicles.sqf";
[] execVM "server\objLockAndClear.sqf";
[] execVM "server\transportHelis.sqf";
[] execVM "fillContainerInit.sqf";
[] execVM "server\civKillListener.sqf";
[] execVM "server\civGunfightListener.sqf";
["SERVER"] execVM "helpers\uploadTime.sqf";
["FINDOBJS"] spawn mcd_fnc_hideTaskMarkers;
//mission scripts
[] execVM "server\respawnVehicles.sqf";
[] execVM "server\handleRespawns.sqf";
[] execVM "server\detectAllDead.sqf";
[] execVM "server\endInDraw.sqf";
[] execVM "server\uploadSoldiers.sqf";
[] execVM "server\overwriteReveal.sqf";
[] execVM "server\skipToEndgame.sqf";
};