From ec0e2d72c2675fa900a333cc8bc2236c1eafeb69 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 15 Mar 2015 16:47:50 -0500 Subject: [PATCH] Check firer's silencer instead of player's --- addons/hearing/functions/fnc_firedNear.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/hearing/functions/fnc_firedNear.sqf b/addons/hearing/functions/fnc_firedNear.sqf index 83d50776f7..c66361801e 100644 --- a/addons/hearing/functions/fnc_firedNear.sqf +++ b/addons/hearing/functions/fnc_firedNear.sqf @@ -35,9 +35,9 @@ if (_weapon in ["Throw", "Put"]) exitWith {}; if (_unit != vehicle _unit && {!([_unit] call EFUNC(common,isTurnedOut))}) exitWith {}; _silencer = switch (_weapon) do { -case (primaryWeapon _unit) : {primaryWeaponItems _unit select 0}; -case (secondaryWeapon _unit) : {secondaryWeaponItems _unit select 0}; -case (handgunWeapon _unit) : {handgunItems _unit select 0}; + case (primaryWeapon _firer) : {(primaryWeaponItems _firer) select 0}; + case (secondaryWeapon _firer) : {(secondaryWeaponItems _firer) select 0}; + case (handgunWeapon _firer) : {(handgunItems _firer) select 0}; default {""}; };