mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
22 lines
701 B
Plaintext
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
|