mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
05d30c5573
* convert log macros to cba versions * Add changes to AB * remove obsolete macro
24 lines
807 B
Plaintext
24 lines
807 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Initializes the Hearing module.
|
|
*
|
|
* Arguments:
|
|
* Whatever the module provides. (I dunno.)
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_logic"];
|
|
|
|
[_logic, QGVAR(EnableCombatDeafness), "EnableCombatDeafness"] call EFUNC(common,readSettingFromModule);
|
|
|
|
// 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);
|
|
};
|
|
[_logic, QGVAR(enabledForZeusUnits), "enabledForZeusUnits"] call EFUNC(common,readSettingFromModule);
|
|
[_logic, QGVAR(autoAddEarplugsToUnits), "autoAddEarplugsToUnits"] call EFUNC(common,readSettingFromModule);
|
|
INFO("Hearing Module Initialized.");
|