2016-11-08 13:47:12 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal, Ruthberg
|
|
|
|
* Module for adjusting the scopes settings
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: units <ARRAY>
|
|
|
|
* 2: activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [LOGIC, [bob, kevin], true] call ace_scopes_fnc_initModuleSettings
|
|
|
|
*
|
2016-11-08 13:47:12 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
params ["_logic","_units", "_activated"];
|
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
2017-06-08 13:31:51 +00:00
|
|
|
|
2016-11-08 13:47:12 +00:00
|
|
|
[_logic, QGVAR(enabled), "enabled"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(forceUseOfAdjustmentTurrets), "forceUseOfAdjustmentTurrets"] call EFUNC(common,readSettingFromModule);
|
2016-11-12 11:06:17 +00:00
|
|
|
[_logic, QGVAR(correctZeroing), "correctZeroing"] call EFUNC(common,readSettingFromModule);
|
2016-11-16 11:55:43 +00:00
|
|
|
[_logic, QGVAR(overwriteZeroRange), "overwriteZeroRange"] call EFUNC(common,readSettingFromModule);
|
2016-11-08 13:47:12 +00:00
|
|
|
[_logic, QGVAR(defaultZeroRange), "defaultZeroRange"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(zeroReferenceTemperature), "zeroReferenceTemperature"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(zeroReferenceBarometricPressure), "zeroReferenceBarometricPressure"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(zeroReferenceHumidity), "zeroReferenceHumidity"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(deduceBarometricPressureFromTerrainAltitude), "deduceBarometricPressureFromTerrainAltitude"] call EFUNC(common,readSettingFromModule);
|
|
|
|
GVAR(defaultZeroRange) = 0 max GVAR(defaultZeroRange) min 1000;
|
2017-11-11 13:15:59 +00:00
|
|
|
GVAR(zeroReferenceTemperature) = -55 max GVAR(zeroReferenceTemperature) min 55;
|
2016-11-08 13:47:12 +00:00
|
|
|
GVAR(zeroReferenceBarometricPressure) = 0 max GVAR(zeroReferenceBarometricPressure) min 1013.25;
|
|
|
|
GVAR(zeroReferenceHumidity) = 0 max GVAR(zeroReferenceHumidity) min 1.0;
|