From 5172e7717c612b62bf04a873a98c5adb36545fe6 Mon Sep 17 00:00:00 2001 From: Brandon Danyluk Date: Sat, 22 Feb 2020 13:09:15 -0700 Subject: [PATCH] fix static weapon ammo check (#7541) For some reason ARMA never returns any muzzle for crewed/non crewed static weapons. Work around this by always returning whatever weapon the static weapon has no matter what --- addons/reload/functions/fnc_displayAmmo.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/reload/functions/fnc_displayAmmo.sqf b/addons/reload/functions/fnc_displayAmmo.sqf index 9b018131d4..80a5466475 100644 --- a/addons/reload/functions/fnc_displayAmmo.sqf +++ b/addons/reload/functions/fnc_displayAmmo.sqf @@ -42,6 +42,11 @@ if (_target isKindOf "StaticWeapon") then { }; } forEach _magazines; }; + + // For static weapons the muzzle seemingly never returns anything for static weapons with/without people inside + if (_muzzle == "") then { + _muzzle = _weapon; + }; }; if (_magazine == "") exitWith {};