2021-10-14 15:46:43 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
ADDON = false;
|
|
|
|
|
|
|
|
PREP_RECOMPILE_START;
|
|
|
|
#include "XEH_PREP.hpp"
|
|
|
|
PREP_RECOMPILE_END;
|
|
|
|
|
|
|
|
#include "initSettings.sqf"
|
|
|
|
|
2023-07-07 04:14:35 +00:00
|
|
|
#define ARSENAL_CATEGORY_ICON QPATHTOF(ui\icon_survival.paa)
|
|
|
|
|
2021-10-14 15:46:43 +00:00
|
|
|
// Init arrays of status modifiers
|
|
|
|
GVAR(thirstModifiers) = [];
|
|
|
|
GVAR(hungerModifiers) = [];
|
|
|
|
|
|
|
|
private _cache = call (uiNamespace getVariable [QGVAR(cacheP3Ds), {ERROR("no cache")}]); // cache built at preStart
|
|
|
|
// List of p3d water sources (case sensitive) for objects that report `typeOf == ""`
|
|
|
|
GVAR(waterSourceP3Ds) = _cache select 0;
|
|
|
|
// List of refill action offsets corresponding to the p3ds in the array above
|
|
|
|
GVAR(waterSourceOffsets) = _cache select 1;
|
|
|
|
|
2023-07-07 04:14:35 +00:00
|
|
|
// Custom Arsenal Tab
|
|
|
|
if (["ace_arsenal"] call EFUNC(common,isModLoaded)) then {
|
2023-07-21 19:39:48 +00:00
|
|
|
[keys FIELD_RATIONS_ITEMS, LLSTRING(DisplayName), ARSENAL_CATEGORY_ICON, -1, true] call EFUNC(arsenal,addRightPanelButton);
|
2023-07-07 04:14:35 +00:00
|
|
|
};
|
|
|
|
|
2021-10-14 15:46:43 +00:00
|
|
|
ADDON = true;
|