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]);
|
|
|
|
|
|
|
|
TRACE_1("compiled",count _detectableClasses);
|
|
|
|
uiNamespace setVariable [QGVAR(detectableClasses), compileFinal str _detectableClasses];
|