2019-02-08 13:55:06 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
#include "XEH_PREP.hpp"
|
2019-02-17 18:31:34 +00:00
|
|
|
|
|
|
|
// Cache detectable classes, see XEH_postInit.sqf
|
|
|
|
private _detectableClasses = [];
|
|
|
|
{
|
|
|
|
if ((getNumber (_x >> QGVAR(detectable))) == 1) then {
|
|
|
|
_detectableClasses pushBackUnique configName _x;
|
|
|
|
};
|
|
|
|
} forEach (configProperties [configFile >> "CfgVehicles", "isClass _x", true]);
|
|
|
|
{
|
|
|
|
if ((getNumber (_x >> QGVAR(detectable))) == 1) then {
|
|
|
|
_detectableClasses pushBackUnique configName _x;
|
|
|
|
};
|
|
|
|
} forEach (configProperties [configFile >> "CfgAmmo", "isClass _x", true]);
|
|
|
|
|
2024-06-11 15:34:32 +00:00
|
|
|
TRACE_1("built cache",count _detectableClasses);
|
|
|
|
uiNamespace setVariable [QGVAR(detectableClasses), compileFinal (_detectableClasses createHashMapFromArray [])];
|