mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update checkConfigs.sqf
This commit is contained in:
parent
fb49401fd8
commit
5847befaec
@ -2,19 +2,19 @@ diag_log text "-------------------------------------------";
|
||||
INFO("Showing entries with custom configs");
|
||||
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];
|
||||
_customVeh = _customVeh apply {[configName _x, getNumber (_x >> QGVAR(showGunLaying))]};
|
||||
diag_log text format ["CfgVehicles with custom showGunLaying [%1]", count _customVeh];
|
||||
diag_log text format ["%1", _customVeh];
|
||||
private _fnc_showPropertyDefined = {
|
||||
params ["_configBase", "_configProperty"];
|
||||
|
||||
private _customVeh = configProperties [(configFile >> "CfgVehicles"), 'isClass _x && {isNumber (_x >> QGVAR(applyCorrections))}', true];
|
||||
_customVeh = _customVeh apply {[configName _x, getNumber (_x >> QGVAR(applyCorrections))]};
|
||||
diag_log text format ["CfgVehicles with custom applyCorrections [%1]", count _customVeh];
|
||||
diag_log text format ["%1", _customVeh];
|
||||
private _customAll = configProperties [_configBase, 'isClass _x && {isNumber (_x >> _configProperty)}', true];
|
||||
private _customExplicit = _customAll select {!([] isEqualTo configProperties [_x, 'configName _x == _configProperty', false])};
|
||||
diag_log text format ["%1 with custom %2: %3 Explicit, %4 Total]", configName _configBase, _configProperty, count _customExplicit, count _customAll];
|
||||
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 "-------------------------------------------";
|
||||
|
Loading…
Reference in New Issue
Block a user