Update checkConfigs.sqf

This commit is contained in:
PabstMirror 2019-05-24 12:21:12 -05:00
parent fb49401fd8
commit 5847befaec

View File

@ -2,19 +2,19 @@ diag_log text "-------------------------------------------";
INFO("Showing entries with custom configs"); INFO("Showing entries with custom configs");
diag_log text "-------------------------------------------"; diag_log text "-------------------------------------------";
private _customMags = configProperties [(configFile >> "CfgMagazines"), 'isClass _x && {isNumber (_x >> QGVAR(airFriction))}', true];
_customMags = _customMags apply {[configName _x, getNumber (_x >> QGVAR(airFriction))]};
diag_log text format ["CfgMagazines with custom airFriction [%1]", count _customMags];
diag_log text format ["%1", _customMags];
private _customVeh = configProperties [(configFile >> "CfgVehicles"), 'isClass _x && {isNumber (_x >> QGVAR(showGunLaying))}', true]; private _fnc_showPropertyDefined = {
_customVeh = _customVeh apply {[configName _x, getNumber (_x >> QGVAR(showGunLaying))]}; params ["_configBase", "_configProperty"];
diag_log text format ["CfgVehicles with custom showGunLaying [%1]", count _customVeh];
diag_log text format ["%1", _customVeh];
private _customVeh = configProperties [(configFile >> "CfgVehicles"), 'isClass _x && {isNumber (_x >> QGVAR(applyCorrections))}', true]; private _customAll = configProperties [_configBase, 'isClass _x && {isNumber (_x >> _configProperty)}', true];
_customVeh = _customVeh apply {[configName _x, getNumber (_x >> QGVAR(applyCorrections))]}; private _customExplicit = _customAll select {!([] isEqualTo configProperties [_x, 'configName _x == _configProperty', false])};
diag_log text format ["CfgVehicles with custom applyCorrections [%1]", count _customVeh]; diag_log text format ["%1 with custom %2: %3 Explicit, %4 Total]", configName _configBase, _configProperty, count _customExplicit, count _customAll];
diag_log text format ["%1", _customVeh]; diag_log text format [" - Defined: %1", _customExplicit apply {configName _x}];
diag_log text format [" - Inherited: %1", _customAll apply {[configName _x, getNumber (_x >> _configProperty)]}];
};
[configFile >> "CfgMagazines", QGVAR(airFriction)] call _fnc_showPropertyDefined;
[configFile >> "CfgVehicles", QGVAR(showGunLaying)] call _fnc_showPropertyDefined;
[configFile >> "CfgVehicles", QGVAR(applyCorrections)] call _fnc_showPropertyDefined;
diag_log text "-------------------------------------------"; diag_log text "-------------------------------------------";