This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
52 lines (39 loc) · 1.56 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
// by Xeno
//#define __DEBUG__
#define THIS_FILE "init.sqf"
#include "x_setup.sqf"
diag_log [diag_frameno, diag_ticktime, time, "Executing Dom init.sqf"];
d_IS_HC_CLIENT = !isDedicated && {!hasInterface};
__TRACE_1("","d_IS_HC_CLIENT")
if (isDedicated) then {disableRemoteSensors true};
if (isMultiplayer && {!isDedicated}) then {
enableRadio false;
showChat false;
0 fadeSound 0;
titleText ["", "BLACK FADED"];
};
enableSaving [false,false];
enableTeamSwitch false;
d_of_ex_id = addMissionEventhandler ["EachFrame", {
if (isNil "d_init_processed") then {
call compile preprocessFileLineNumbers "d_init.sqf";
};
removeMissionEventHandler ["EachFrame", d_of_ex_id];
d_of_ex_id = nil;
}];
waitUntil { isServer || !isNull player };
cfgTF47 = compile preprocessFileLineNumbers "cfgTF47.sqf";
private "_pathToScripts";
call cfgTF47;
tf47_fnc_vehicleOnEnter = compileFinal preprocessFileLineNumbers format ["%1vehicleOnEnter.sqf", _pathToScripts];
tf47_fnc_unitMarkerInit = compileFinal preprocessFileLineNumbers format ["%1unitMarkerInit.sqf", _pathToScripts];
tf47_fnc_vehicleOnSpawn = compileFinal preprocessFileLineNumbers format ["%1vehicleOnSpawn.sqf", _pathToScripts];
// client event handler
execVM format ["%1playerEvents.sqf", _pathToScripts];
// DB Functionality & Ticket System
execVM format ["%1serverEvents.sqf", _pathToScripts];
// Special Markers
execVM format ["%1mapMarkerInit.sqf", _pathToScripts];
//include config for sa_towing written by Chris
#include "tf47\tf47_towing_config.hpp";
diag_log [diag_frameno, diag_ticktime, time, "Dom init.sqf processed"];