forked from CombinedArmsGaming/CAFE3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sqf
More file actions
72 lines (45 loc) · 1.99 KB
/
init.sqf
File metadata and controls
72 lines (45 loc) · 1.99 KB
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
#include "macros.hpp"
// ====================================================================================
// CAFE - Disable Saving and Auto Saving
// Credits: Please see the CAFE online manual (https://github.com/CombinedArmsGaming/CAFE3/wiki)
enableSaving [false, false];
// ====================================================================================
// CAFE - Mute Orders and Reports
// Credits: Please see the CAFE online manual (https://github.com/CombinedArmsGaming/CAFE3/wiki)
enableSentences false;
// ====================================================================================
// Thanks to http://killzonekid.com/arma-scripting-tutorials-mission-root/
MISSION_ROOT = call
{
private "_arr";
_arr = toArray str missionConfigFile;
_arr resize (count _arr - 15);
toString _arr
};
DEBUG_FORMAT2_LOG("Is CLIENT? %1. Is SERVER? %2.",hasInterface,isServer)
if (IS_CLIENT) then
{
DEBUG_PRINT_LOG("Using CLIENT groups.")
// Remove the spawn-block surrounding this #include if you need the customStartup code to finish running before configuration begins!
[] spawn
{
#include "customStartup_client.sqf"
};
#include "startup\configuration\groups\clientConfigGroup.sqf"
missionNamespace setVariable ["f_var_frameworkSettingsReady_client", true];
#include "startup\components\groups\clientStartupGroup.sqf"
missionNamespace setVariable ["f_var_initClient", true];
};
if (isServer) then
{
DEBUG_PRINT_LOG("Using SERVER groups.")
// Remove the surrounding around this #include if you need the customStartup code to finish running before configuration begins!
[] spawn
{
#include "customStartup_server.sqf"
};
#include "startup\configuration\groups\serverConfigGroup.sqf"
missionNamespace setVariable ["f_var_frameworkSettingsReady_server", true, true];
#include "startup\components\groups\serverStartupGroup.sqf"
missionNamespace setVariable ["f_var_initServer", true, true];
};