-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sqf
58 lines (49 loc) · 2.34 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
enableSaving [ false, false ];
if (isDedicated) then {debug_source = "Server";} else {debug_source = name player;};
[] call compileFinal preprocessFileLineNumbers "scripts\shared\liberation_functions.sqf";
[] call compileFinal preprocessFileLineNumbers "scripts\shared\init_sectors.sqf";
[] call compileFinal preprocessFileLineNumbers "scripts\shared\fetch_params.sqf";
[] call compileFinal preprocessFileLineNumbers "kp_liberation_config.sqf";
[] call compileFinal preprocessFileLineNumbers "presets\init_presets.sqf";
/*
switch (KP_liberation_preset) do {
case 0: {[] call compileFinal preprocessFileLineNumbers "presets\custom.sqf";};
case 1: {[] call compileFinal preprocessFileLineNumbers "presets\apex_tanoa.sqf";};
case 2: {[] call compileFinal preprocessFileLineNumbers "presets\rhs.sqf";};
case 3: {[] call compileFinal preprocessFileLineNumbers "presets\rhs_bw.sqf";};
case 4: {[] call compileFinal preprocessFileLineNumbers "presets\rhs_takistan.sqf";};
case 5: {[] call compileFinal preprocessFileLineNumbers "presets\3cbBAF.sqf";};
default {[] call compileFinal preprocessFileLineNumbers "presets\custom.sqf";};
};*/
[] execVM "GREUH\scripts\GREUH_activate.sqf";
//[] execVM "scripts\uke\RestartTimer.sqf";
[] call compileFinal preprocessFileLineNumbers "scripts\shared\init_shared.sqf";
if (isServer) then {
[] call compileFinal preprocessFileLineNumbers "scripts\server\init_server.sqf";
};
if (!isDedicated && !hasInterface && isMultiplayer) then {
[] spawn compileFinal preprocessFileLineNumbers "scripts\server\offloading\hc_manager.sqf";
};
if (hasInterface || isServer) then
{
[] call compileFinal preprocessFileLineNumbers "addons\welcome\welcome.sqf";
};
if (!isDedicated && hasInterface) then {
waitUntil {alive player};
if (debug_source != name player) then {debug_source = name player};
[] call compileFinal preprocessFileLineNumbers "scripts\client\init_client.sqf";
} else {
setViewDistance 1600;
};
[] call compileFinal preprocessFileLineNumbers "scripts\uke\client\ukeinit.sqf";
//if (KP_liberation_debug) then {private _text = format ["[KP LIBERATION] [DEBUG] init.sqf done for: %1", debug_source];_text remoteExec ["diag_log",2];};
_pic = "Pictures\logo.paa";
[
'<img align=''left'' size=''1.5'' shadow=''0'' image='+(str(_pic))+' />',
safeZoneX+0.00,
safeZoneY+safeZoneH-0.12,
99999,
0,
0,
3090
] spawn bis_fnc_dynamicText;