2015-03-16 23:28:37 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: esteldunedain
|
2015-07-11 02:30:47 +00:00
|
|
|
* Initializes the Hearing module.
|
2015-03-16 23:28:37 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Whatever the module provides. (I dunno.)
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-30 06:47:40 +00:00
|
|
|
params ["_logic"];
|
2015-03-16 23:28:37 +00:00
|
|
|
|
2016-02-06 16:59:31 +00:00
|
|
|
[_logic, QGVAR(EnableCombatDeafness), "EnableCombatDeafness"] call EFUNC(common,readSettingFromModule);
|
2015-03-16 23:28:37 +00:00
|
|
|
|
2015-08-02 17:15:26 +00:00
|
|
|
// Do Not Force - read module setting only non-default is set due to using SCALAR
|
|
|
|
if ((_logic getVariable "DisableEarRinging") != -1) then {
|
|
|
|
[_logic, QGVAR(DisableEarRinging), "DisableEarRinging"] call EFUNC(common,readSettingFromModule);
|
|
|
|
};
|
2015-08-08 19:40:19 +00:00
|
|
|
[_logic, QGVAR(enabledForZeusUnits), "enabledForZeusUnits"] call EFUNC(common,readSettingFromModule);
|
2015-11-11 02:44:55 +00:00
|
|
|
[_logic, QGVAR(autoAddEarplugsToUnits), "autoAddEarplugsToUnits"] call EFUNC(common,readSettingFromModule);
|
2016-10-02 10:55:31 +00:00
|
|
|
INFO("Hearing Module Initialized.");
|