From a6b7eb94b4c29fac6980ec90bf1b2fffd6c7fd09 Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 11 Jan 2019 16:09:07 +0100 Subject: [PATCH] Cursortarget - More accurate check for Explosives --- .../epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf b/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf index e0dc126b..70571f60 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_fnc_cursorTarget.sqf @@ -33,6 +33,9 @@ if (underwater player) then { if (_ins isEqualTo []) exitWith { objNull }; (_ins select 0 param [3,objNull]) } else { + if (player distance cursorobject < 3.5 && {!((gettext (configfile >> "cfgammo" >> (typeof cursorobject) >> "defaultMagazine")) isEqualTo "")}) exitwith { + cursorobject + }; if (!isnull cursorTarget) then { cursorTarget }