2017-08-22 21:21:41 +00:00
|
|
|
// ["vehicleTransportFuel"] call ace_common_fnc_runTests;
|
|
|
|
// execVM "z\ace\addons\refuel\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;
|
|
|
|
|
2024-05-23 19:47:19 +00:00
|
|
|
INFO("Showing CfgVehicles with transportFuel and without XEH");
|
|
|
|
private _badCfgVehicles = '
|
|
|
|
2 == getNumber (_x >> "scope")
|
|
|
|
&& {0 < getNumber (_x >> "transportFuel")}
|
|
|
|
&& {!isText (_x >> "EventHandlers" >> "CBA_Extended_EventHandlers" >> "init")}
|
|
|
|
' configClasses (configFile >> "CfgVehicles");
|
2017-08-22 21:21:41 +00:00
|
|
|
{
|
2024-05-23 19:47:19 +00:00
|
|
|
diag_log text format ["Class %1: %2 [%3] needs XEH", configName _x, configName inheritsFrom _x, configSourceMod _x];
|
|
|
|
} forEach _badCfgVehicles;
|
2017-08-22 21:21:41 +00:00
|
|
|
|
|
|
|
_testPass
|