From 75e322e6ae25ab4c31dad1fa0d9f5ab4963f8c90 Mon Sep 17 00:00:00 2001 From: naizarak Date: Mon, 29 Jun 2015 12:23:32 -0700 Subject: [PATCH] Update fnc_addEarPlugs.sqf Do not automatically add earplugs to units if combat deafness is disabled. --- addons/hearing/functions/fnc_addEarPlugs.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/hearing/functions/fnc_addEarPlugs.sqf b/addons/hearing/functions/fnc_addEarPlugs.sqf index 455de07fd9..5938bf3eb9 100644 --- a/addons/hearing/functions/fnc_addEarPlugs.sqf +++ b/addons/hearing/functions/fnc_addEarPlugs.sqf @@ -15,6 +15,8 @@ */ #include "script_component.hpp" +if (!GVAR(enableCombatDeafness)) exitWith {}; + private ["_unit", "_launcher"]; _unit = _this select 0;