forked from gruppe-adler/TvT_BreakingContact.Stratis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
52 lines (39 loc) · 1.6 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
#include "\z\ace\addons\main\script_component.hpp"
#include "\z\ace\addons\main\script_macros.hpp"
enableDynamicSimulationSystem true;
// optimize for PVP
disableRemoteSensors true; // disable ai combat ability
// Initialize Loading of Streamator
if !(isNil "CLib_fnc_loadModules") then { call CLib_fnc_loadModules; };
/*
if (BC_IS_WOODLAND) then {
// us vs russians
["BLU_F", "US_Woodland"] call GRAD_Loadout_fnc_FactionSetLoadout;
["OPF_F", "RU_Woodland"] call GRAD_Loadout_fnc_FactionSetLoadout;
} else {
["BLU_F", "US_Desert"] call GRAD_Loadout_fnc_FactionSetLoadout;
["OPF_F", "RU_Desert"] call GRAD_Loadout_fnc_FactionSetLoadout;
};
*/
// call compile preprocessfile "BC_loadouts\setLoadoutRandomization.sqf";
waitUntil {!isNil "JIP_TIME_ALLOWED"};
waitUntil {!isNil "CONQUER_MODE"};
waitUntil {!isNil "PREPARATION_TIME"};
jipTime = JIP_TIME_ALLOWED;
waitUntil {!isNil "GRAD_REPLAY_PRECISION"};
if (hasInterface) then {
call compile preprocessfile "node_modules\shk_pos\functions\shk_pos_init.sqf";
/* SERVER TIME is taken from server pv */
checkJIP = {
if ((OPFOR_TELEPORT_TARGET select 0 != 0) && didJIP && CBA_missionTime > jipTime) then {
player setDamage 1;
} else {
if (!didJIP) exitWith {};
BIS_fnc_establishingShot_skip = true; // just in case its necessary
};
};
[] call BC_setup_fnc_addBriefing;
waitUntil {!isNil "OPFOR_TELEPORT_TARGET"};
waitUntil {!isNil "BLUFOR_TELEPORT_TARGET"};
[[worldSize/2,worldSize/2,0],"",1500] spawn BC_setup_fnc_establishingShot;
};