2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
2015-01-12 04:02:33 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-29 07:38:46 +00:00
|
|
|
ADDON = false;
|
|
|
|
|
2016-11-23 19:35:25 +00:00
|
|
|
PREP_RECOMPILE_START;
|
2016-02-22 14:20:36 +00:00
|
|
|
#include "XEH_PREP.hpp"
|
2016-11-23 19:35:25 +00:00
|
|
|
PREP_RECOMPILE_END;
|
2015-01-12 04:02:33 +00:00
|
|
|
|
2016-07-30 10:28:06 +00:00
|
|
|
GVAR(syncedEvents) = [] call CBA_fnc_hashCreate;
|
|
|
|
GVAR(showHudHash) = [] call CBA_fnc_hashCreate;
|
2017-12-20 20:30:50 +00:00
|
|
|
GVAR(vehicleIconCache) = call CBA_fnc_createNamespace; // for getVehicleIcon
|
2015-06-11 07:45:42 +00:00
|
|
|
|
2015-09-03 04:58:24 +00:00
|
|
|
GVAR(settingsInitFinished) = false;
|
|
|
|
GVAR(runAtSettingsInitialized) = [];
|
|
|
|
|
2015-09-21 16:37:19 +00:00
|
|
|
// @todo: Generic local-managed global-synced objects (createVehicleLocal)
|
2015-04-17 17:21:41 +00:00
|
|
|
|
2015-03-10 19:59:40 +00:00
|
|
|
//Debug
|
|
|
|
ACE_COUNTERS = [];
|
|
|
|
|
2017-11-11 19:21:55 +00:00
|
|
|
// Load ace_settings into CBA Settings
|
|
|
|
[] call FUNC(cbaSettings);
|
2015-01-16 14:30:49 +00:00
|
|
|
|
2016-01-13 00:18:12 +00:00
|
|
|
GVAR(statusEffect_Names) = [];
|
|
|
|
GVAR(statusEffect_isGlobal) = [];
|
2015-09-21 16:37:19 +00:00
|
|
|
|
2016-05-20 16:23:14 +00:00
|
|
|
GVAR(setHearingCapabilityMap) = [];
|
|
|
|
|
2015-09-21 16:37:19 +00:00
|
|
|
//////////////////////////////////////////////////
|
2016-04-04 04:36:38 +00:00
|
|
|
// Set up PlayerChanged eventhandler for pre init (EH is installed in postInit)
|
2015-09-21 16:37:19 +00:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
2015-09-21 15:32:21 +00:00
|
|
|
ACE_player = objNull;
|
2015-09-21 16:37:19 +00:00
|
|
|
uiNamespace setVariable ["ACE_player", objNull];
|
2015-01-16 14:30:49 +00:00
|
|
|
|
2015-03-23 15:16:50 +00:00
|
|
|
// Init toHex
|
|
|
|
[0] call FUNC(toHex);
|
|
|
|
|
2015-09-21 16:37:19 +00:00
|
|
|
isHC = !hasInterface && !isDedicated; // deprecated because no tag
|
|
|
|
missionNamespace setVariable ["ACE_isHC", ACE_isHC];
|
|
|
|
uiNamespace setVariable ["ACE_isHC", ACE_isHC];
|
2015-02-14 19:29:07 +00:00
|
|
|
|
2018-01-02 13:57:19 +00:00
|
|
|
#include "initSettings.sqf"
|
2017-12-03 06:22:49 +00:00
|
|
|
|
2015-09-21 16:37:19 +00:00
|
|
|
ADDON = true;
|