ACE3/addons/rearm/dev/test_debugConfigs.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

22 lines
701 B
Plaintext

// ["vehicleTransportAmmo"] call ace_common_fnc_runTests;
// execVM "z\ace\addons\rearm\dev\test_debugConfigs.sqf";
#include "..\script_component.hpp"
private _testPass = true;
INFO("Showing CfgVehicles with vanilla transportAmmo and without XEH");
private _badCfgVehicles = toString {
getNumber (_x >> "scope") == 2
&& {getNumber (_x >> "transportAmmo") > 0}
&& {!isText (_x >> "EventHandlers" >> "CBA_Extended_EventHandlers" >> "init")}
};
{
diag_log text format ["Class %1: %2 [%3] needs XEH", configName _x, configName inheritsFrom _x, configSourceMod _x];
_testPass = false;
} forEach (_badCfgVehicles configClasses (configFile >> "CfgVehicles"));
_testPass