Medical - Report non-default settings to rpt (#7233)

* Medical - Report non-default settings to rpt

* Update reportSettings.sqf
This commit is contained in:
PabstMirror 2019-10-08 12:03:05 -05:00 committed by GitHub
parent 4eeac9f649
commit 2f3d8db134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,9 @@
[QEGVAR(medical,setUnconscious), LINKFUNC(setUnconscious)] call CBA_fnc_addEventHandler;
// For BETA/RC - debug non-default settings to rpt:
call compile preprocessFileLineNumbers QPATHTOF(dev\reportSettings.sqf);
if (!hasInterface) exitWith {};
[missionNamespace, "ACE_setCustomAimCoef", QUOTE(ADDON), {

View File

@ -0,0 +1,14 @@
#include "\z\ace\addons\medical\script_component.hpp"
// Dumps info on all non-default medical settings
[{
private _medicalSettings = cba_settings_allSettings select {(_x select [0,11]) == "ace_medical"};
INFO_1("-- Checking %1 medical Settings --",count _medicalSettings);
{
private _currentValue = missionNamespace getVariable [_x, "$"];
private _defaultValue = (cba_settings_default getVariable [_x, []]) param [0, "#"];
if !(_currentValue isEqualTo _defaultValue) then {
diag_log text format ["%1: [Current %2] [Default: %3]", _x, _currentValue, _defaultValue];
};
} forEach _medicalSettings;
}, nil, 2] call CBA_fnc_waitAndExecute;