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;
|
|
|
|
|
|
|
|
diag_log text format ["[ACE-refuel] Showing CfgVehicles with vanilla transportFuel"];
|
|
|
|
private _fuelTrucks = configProperties [configFile >> "CfgVehicles", "(isClass _x) && {(getNumber (_x >> 'transportFuel')) > 0}", true];
|
|
|
|
{
|
|
|
|
if ((configName _x) isKindOf "Car") then {
|
|
|
|
diag_log text format ["Car [%1] needs config [transportFuel: %2]", configName _x, getNumber (_x >> 'transportFuel')];
|
|
|
|
} else {
|
|
|
|
diag_log text format ["Non-car? [%1] needs config [transportFuel: %2]", configName _x, getNumber (_x >> 'transportFuel')];
|
|
|
|
};
|
|
|
|
} forEach _fuelTrucks;
|
|
|
|
|
|
|
|
_testPass
|