From d8632a89d5b54cba52f0d6be6aed4d92bfb41dcf Mon Sep 17 00:00:00 2001 From: He-Man <He-Man> Date: Tue, 17 Apr 2018 17:14:45 +0200 Subject: [PATCH] Calculate Multigun distance by size of Target --- Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf b/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf index a7f5fa1e..0dc80d0d 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_fnc_playerFired.sqf @@ -37,7 +37,7 @@ switch true do { if (!isNull cursorTarget) then { _cursorTarget = cursorTarget; _repaired = false; - if ((player distance _cursorTarget) <= 6) then { + if ((player distance _cursorTarget) <= (((SizeOf (TypeOf _cursorTarget))/2) max 6) min 12) then { _attachments = handgunItems player; _heal = false; if (_cursorTarget isKindOf "Man") then {