ACE3/addons/common/XEH_preInit.sqf

46 lines
1.1 KiB
Plaintext
Raw Normal View History

// by commy2
#include "script_component.hpp"
2015-01-29 07:38:46 +00:00
ADDON = false;
PREP_RECOMPILE_START;
2016-02-22 14:20:36 +00:00
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
2016-07-30 10:28:06 +00:00
GVAR(syncedEvents) = [] call CBA_fnc_hashCreate;
GVAR(showHudHash) = [] call CBA_fnc_hashCreate;
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-03-10 19:59:40 +00:00
//Debug
ACE_COUNTERS = [];
2015-05-14 23:45:53 +00:00
// Load settings on the server and broadcast them
2015-02-03 00:13:31 +00:00
if (isServer) then {
2015-01-30 21:56:45 +00:00
call FUNC(loadSettingsOnServer);
};
2016-01-13 00:18:12 +00:00
GVAR(statusEffect_Names) = [];
GVAR(statusEffect_isGlobal) = [];
2015-09-21 16:37:19 +00:00
GVAR(setHearingCapabilityMap) = [];
2015-09-21 16:37:19 +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-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-09-21 16:37:19 +00:00
ADDON = true;