mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Check firer's silencer instead of player's
This commit is contained in:
parent
04412e8ba4
commit
ec0e2d72c2
@ -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 {""};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user