forked from 7Cav/cScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcScripts_preInit.sqf
More file actions
58 lines (42 loc) · 2.02 KB
/
cScripts_preInit.sqf
File metadata and controls
58 lines (42 loc) · 2.02 KB
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
#include "script_component.hpp";
/*
* Author: CPL.Brostrom.A
* This is the rules set for the mission using the cba XEH. Each setting here is alterd via cbaSettings
*/
INFO(if (is3DEN) then {"EDEN"} else {"preInit"}, "Initializing CBA Settings...");
// Check installed moduels
EGVAR(patches,usesACE) = isClass (configFile >> "CfgPatches" >> "ace_main");
EGVAR(patches,usesACEArsenal) = isClass (configFile >> "CfgPatches" >> "ace_arsenal");
EGVAR(patches,usesACEX) = isClass (configFile >> "CfgPatches" >> "acex_main");
EGVAR(patches,usesKat) = isClass (configFile >> "CfgPatches" >> "kat_main");
EGVAR(patches,usesACRE) = isClass (configFile >> "CfgPatches" >> "acre_sys_core");
EGVAR(patches,usesTFAR) = isClass (configFile >> "CfgPatches" >> "task_force_radio");
EGVAR(patches,usesAlive) = isClass (configFile >> "CfgPatches" >> "ALiVE_main");
EGVAR(patches,usesZen) = isClass (configFile >> "CfgPatches" >> "zen_main");
EGVAR(patches,usesACEAX) = isCLass (configFile >> "CfgPatches" >> "aceax_main");
// Global Variables
EGVAR(Staging,ZoneStatus) = false;
EGVAR(Staging,showAllLoadouts) = false;
GVAR(isPlayer) = hasInterface || {isPlayer player};
GVAR(OneLife) = !isNil{(getArray (missionconfigfile >> "respawnTemplates") select 0) == "ace_spectator"};
#include "initSettings.inc.sqf"
INFO(if (is3DEN) then {"EDEN"} else {"preInit"}, "Initialization of CBA Settings completed...");
// Ace Arsenal
call EFUNC(init,aceArsenal);
// Load preInit mission settings
if (is3DEN) exitWith {};
INFO("preInit", "Initializing...");
// Logistical Database
EGVAR(DATABASE,DONE) = false;
GVAR(DATABASE) = call EFUNC(init,logistics);
EGVAR(DATABASE,DONE) = true;
EGVAR(PYLONS,DONE) = false;
GVAR(PYLONS) = call EFUNC(init,pylons);
EGVAR(PYLONS,DONE) = true;
call EFUNC(init,chatCommands);
call EFUNC(init,zenModuels);
if (EGVAR(Settings,setAiSystemDifficulty) >= 1 ) then {
call EFUNC(init,skillAdjustment);
};
call EFUNC(init,eventHandlers);
INFO("preInit", "Initialization completed.");