From 24d13e525fa9c467220feea66547c6bc5089a5f0 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 14 Aug 2016 13:35:00 -0500 Subject: [PATCH] Add ACE_isBelt for DLC/Expansion magazines Fix #4094 --- addons/reload/CfgMagazines.hpp | 14 ++++++++++++-- addons/reload/functions/fnc_canLinkBelt.sqf | 5 +++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/addons/reload/CfgMagazines.hpp b/addons/reload/CfgMagazines.hpp index 6df877f772..965bc3c225 100644 --- a/addons/reload/CfgMagazines.hpp +++ b/addons/reload/CfgMagazines.hpp @@ -1,11 +1,21 @@ class CfgMagazines { class CA_Magazine; - class 150Rnd_762x51_Box : CA_Magazine { + class 150Rnd_762x51_Box: CA_Magazine { // Mag for Negev (LMG_Zafir) - 150Rnd_762x54_Box inherits from this ACE_isBelt = 1; }; class 100Rnd_65x39_caseless_mag; - class 200Rnd_65x39_cased_Box : 100Rnd_65x39_caseless_mag { + class 200Rnd_65x39_cased_Box: 100Rnd_65x39_caseless_mag { // Mag for Stoner (LMG_Mk200) + ACE_isBelt = 1; + }; + + class 150Rnd_93x64_Mag: CA_Magazine { // Mag for HK121 (MMG_01) [DLC Opfor Heavy Gunner] + ACE_isBelt = 1; + }; + class 130Rnd_338_Mag: CA_Magazine { // Mag for LWMMG (MMG_02) [DLC Blufor Heavy Gunner] + ACE_isBelt = 1; + }; + class 200Rnd_556x45_Box_F: CA_Magazine { // Mag for M249 SAW (LMG_03) [Tanoa] ACE_isBelt = 1; }; }; diff --git a/addons/reload/functions/fnc_canLinkBelt.sqf b/addons/reload/functions/fnc_canLinkBelt.sqf index 7d25b5ea22..d29dc6efd6 100644 --- a/addons/reload/functions/fnc_canLinkBelt.sqf +++ b/addons/reload/functions/fnc_canLinkBelt.sqf @@ -8,6 +8,11 @@ * * Return Value: * Can link belt + * + * Example: + * [player, cursorObject] call ace_reload_fnc_canLinkBelt; + * + * Public: No */ #include "script_component.hpp"