forked from A3Wasteland/ArmA3_Wasteland.Stratis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
63 lines (50 loc) · 1.58 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
asaerw3rw3r4 = 1; Menu_Init_Lol = 1;
// @file Version: 1.2
// @file Name: init.sqf
// @file Author: [404] Deadbeat, [GoT] JoSchaap
// @file Description: The main init.
#define DEBUG false
enableSaving [false, false];
X_Server = false;
X_Client = false;
X_JIP = false;
// versionName = ""; // Set in STR_WL_WelcomeToWasteland in stringtable.xml
if (isServer) then { X_Server = true };
if (!isDedicated) then { X_Client = true };
if (isNull player) then { X_JIP = true };
[DEBUG] call compile preprocessFileLineNumbers "globalCompile.sqf";
if (!isDedicated) then
{
[] spawn
{
titleText ["Welcome to A3Wasteland, please wait for your client to initialize", "BLACK", 0];
waitUntil {!isNull player};
client_initEH = player addEventHandler ["Respawn", {removeAllWeapons (_this select 0)}];
};
};
//init Wasteland Core
[] execVM "config.sqf";
[] execVM "storeConfig.sqf"; // Separated as its now v large
[] execVM "briefing.sqf";
if (!isDedicated) then
{
waitUntil {!isNull player};
//Wipe Group.
if (count units player > 1) then
{
diag_log "Player Group Wiped";
[player] join grpNull;
};
[] execVM "client\init.sqf";
};
if (isServer) then
{
diag_log format ["############################# %1 #############################", missionName];
diag_log "WASTELAND SERVER - Initializing Server";
[] execVM "server\init.sqf";
};
//init 3rd Party Scripts
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
[] execVM "addons\proving_Ground\init.sqf";
[] execVM "addons\scripts\DynamicWeatherEffects.sqf";
[] execVM "addons\JumpMF\init.sqf";