mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
782 B
Plaintext
19 lines
782 B
Plaintext
|
// ["vehicleTransportFuel"] call ace_common_fnc_runTests;
|
||
|
// execVM "z\ace\addons\refuel\dev\test_debugConfigs.sqf";
|
||
|
|
||
|
#include "\z\ace\addons\refuel\script_component.hpp"
|
||
|
|
||
|
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
|