mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0c8c924487
* Cache minedetector detectableClasses * use compileFinal
20 lines
683 B
Plaintext
20 lines
683 B
Plaintext
#include "script_component.hpp"
|
|
|
|
#include "XEH_PREP.hpp"
|
|
|
|
// 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];
|