mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0321545098
* Add enable setting * Update test * Optimize eden macro * Fix bad command name in eden * Apply suggestions from code review Co-authored-by: jonpas <jonpas33@gmail.com> * Cleanup unused argument * Handle RHS config * Optimize init function a little * Improve macro Co-authored-by: jonpas <jonpas33@gmail.com> * compats and leftovers * function header (sorry jonpas) * add enabled check to initSupplyVehicle * use toString * fix validate * inheritance cleanup --------- Co-authored-by: jonpas <jonpas33@gmail.com> Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
22 lines
718 B
Plaintext
22 lines
718 B
Plaintext
// ["vehicleTransportAmmo"] call ace_common_fnc_runTests;
|
|
// execVM "z\ace\addons\rearm\dev\test_debugConfigs.sqf";
|
|
|
|
#include "\z\ace\addons\rearm\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
|