ACE3/addons/hearing/functions/fnc_moduleHearing.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

29 lines
896 B
Plaintext

/*
* Author: esteldunedain
* Initializes the Hearing module.
*
* Arguments:
* Whatever the module provides. (I dunno.) <UNKNOWN>
*
* Return Value:
* None
*
* Example:
* [player] call ACE_hearing_fnc_moduleHearing
*
* Public: No
*/
#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.");