This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
41 lines (34 loc) · 1.67 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
#define THIS_FILE "init.sqf"
diag_log format ["############################# %1 #############################", missionName];
diag_log [diag_frameno, diag_ticktime, time, "Executing Dom init.sqf"];
#include "x_setup.sqf"
// just a check to prevent init.sqf running more than once
// shouldn't happen, but we want to be sure :)
if (!isNil QGVAR(init_started)) exitWith {
diag_log [diag_frameno, diag_ticktime, time, "Dom init.sqf executed more than once"];
};
GVAR(init_started) = true;
GVAR(IS_HC_CLIENT) = false;
if (isMultiplayer && {!isDedicated}) then {
enableRadio false;
0 fadeSound 0;
titleText ["", "BLACK FADED"];
};
if (!isDedicated) then {
GVAR(client_init_trig) = createTrigger ["EmptyDetector", [0,0,0]];
GVAR(client_init_trig) setTriggerArea [0,0,0,false];
GVAR(client_init_trig) setTriggerActivation ["NONE", "PRESENT", false];
GVAR(client_init_trig) setTriggerTimeout [1, 1, 1, false];
X_INIT = false;
GVAR(client_init_trig) setTriggerStatements ["X_INIT && {!isNil 'd_init_processed'}", "diag_log [diag_frameno, diag_tickTime, time, 'Executing Dom local player JIP trigger'];call compile preprocessFileLineNumbers 'x_client\x_jip.sqf'", ""];
onPreloadFinished {GVAR(preloaddone) = true; onPreloadFinished {}};
execVM "tasks.sqf";
execVM "BTK\Cargo Drop\Start.sqf";
};
enableSaving [false,false];
enableTeamSwitch false;
// process d_init in one frame
GVAR(init_obj) = "HeliHEmpty" createVehicleLocal [0, 0, 0];
GVAR(init_obj) addEventHandler ["killed", {__ccppfln(d_init.sqf);deleteVehicle GVAR(init_obj);GVAR(init_obj) = nil}];
GVAR(init_obj) setDamage 1;
diag_log [diag_frameno, diag_ticktime, time, "Dom init.sqf processed"];