-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
73 lines (54 loc) · 1.94 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
63
64
65
66
67
68
69
70
71
72
73
#define framework
#include "core\script_macros.hpp"
#include "core\init.sqf" //DO NOT REMOVE
#include "customization\settings.sqf" //DO NOT REMOVE
#include "core\dia\debug\dia_debug.sqf" //DO NOT REMOVE
/*
if (isServer) then {
[] spawn {
while {true} do {
_sounds = selectRandom [
"A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight1.wss",
"A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight2.wss",
"A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight3.wss",
"A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight4.wss"];
_location = selectRandom [
tottahbattle,
gorambattle,
hamabattle,
sectorbase];
sleep (3 + random 4);
playSound3D [_sounds, gorambattle, false, getPosASL _location, 5, 1, 150];
};
};
};
*/
#include "customization\addAction.sqf" //gives the CI the 'confirm stack' option
#include "customization\unlockVehicles.sqf" //this will unlock bradleys after 8 players and mraps after 12 players have connected
courseStarted = false;
confirmed = false;
cqcCheck = false;
triggered = false;
triggered2 = false;
cntPly = 0;
if (isServer) then {
"init" execVM "customization\popup.sqf";
[] spawn {
while {true} do {
cntPly = (count allPlayers);
sleep 60;
};
};
"" call FNC_StartingCount; //DO NOT REMOVE
[] spawn { //Spawns code running in parallel
while {!FW_MissionEnded} do { //Loops while the mission is not ended
#include "customization\endConditions.sqf" //DO NOT REMOVE
//The time limit in minutes variable called FW_TimeLimit is set in customization/settings.sqf, to disable the time limit set it to 0
if ((time / 60) >= FW_TimeLimit && FW_TimeLimit != 0) exitWith { //It is recommended that you do not remove the time limit end condition
FW_TimeLimitMessage call FNC_EndMission;
};
};
};
};
#include "modules\modules.sqf" //DO NOT REMOVE
#include "core\postChecks.sqf" //DO NOT REMOVE