2017-08-22 21:21:41 +00:00
|
|
|
// ["vehicleTransportAmmo"] call ace_common_fnc_runTests;
|
|
|
|
// execVM "z\ace\addons\rearm\dev\test_debugConfigs.sqf";
|
|
|
|
|
2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-08-22 21:21:41 +00:00
|
|
|
|
|
|
|
private _testPass = true;
|
|
|
|
|
2023-07-28 09:47:23 +00:00
|
|
|
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")}
|
|
|
|
};
|
|
|
|
|
2017-08-22 21:21:41 +00:00
|
|
|
{
|
2023-07-28 09:47:23 +00:00
|
|
|
diag_log text format ["Class %1: %2 [%3] needs XEH", configName _x, configName inheritsFrom _x, configSourceMod _x];
|
2017-08-22 21:21:41 +00:00
|
|
|
_testPass = false;
|
2023-07-28 09:47:23 +00:00
|
|
|
} forEach (_badCfgVehicles configClasses (configFile >> "CfgVehicles"));
|
2017-08-22 21:21:41 +00:00
|
|
|
|
|
|
|
_testPass
|