-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
69 lines (58 loc) · 1.87 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
// @file Version: 1.0
// @file Name: init.sqf
// @file Author: [404] Deadbeat
// @file Created: 20/11/2012 05:13
// @file Description: The main init.
// @file Args:
#include "setup.sqf"
if (isnil "RE") then {[] execVM "\ca\Modules\MP\data\scripts\MPframework.sqf"};
StartProgress = false;
enableSaving[false,false];
X_Server = false;
X_Client = false;
X_JIP = false;
hitStateVar = false;
versionName = "v2.9b";
if(isServer) then { X_Server = true;};
if(!isDedicated) then { X_Client = true;};
if(isNull player) then {X_JIP = true;};
true spawn {
if(!isDedicated) then {
titleText ["Please wait for your player to setup", "BLACK", 0];
waitUntil {player == player};
client_initEH = player addEventHandler ["Respawn", {removeAllWeapons (_this select 0);}];
};
};
//init Wasteland Core
[] execVM "config.sqf";
[] execVM "briefing.sqf";
if(X_Client) then {
waitUntil {player == player};
//Wipe Group.
if(count units group player > 1) then
{
diag_log "Player Group Wiped";
[player] join grpNull;
};
[] execVM "client\init.sqf";
};
if(X_Server) then {
diag_log format ["############################# %1 #############################", missionName];
#ifdef __DEBUG__
diag_log format ["T%1,DT%2,F%3", time, diag_tickTime, diag_frameno];
#endif
diag_log format["WASTELAND SERVER - Initilizing Server"];
[] execVM "server\init.sqf";
};
//init 3rd Party Scripts
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
[] execVM "addons\proving_Ground\init.sqf";
[0.1, 0.5, 0.5] execVM "addons\scripts\DynamicWeatherEffects.sqf";
call compile preprocessFileLineNumbers "addons\scripts\Init_UPSMON.sqf";
if (!(isNull player)) then {
gc_veh_flip_script_script_action_manager = execVM "addons\gc_veh_flip\action_manager.sqf";
};
if (!isServer && isNull player) then {
waitUntil {!isNull player};
gc_veh_flip_script_script_action_manager = execVM "addons\gc_veh_flip\action_manager.sqf";
};