From 16a3bd096ace070a9a0df51ddfc9cd832fc96933 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 27 Aug 2018 17:13:38 -0500 Subject: [PATCH] RHS GREF Compat - MG42 (#6552) Close #6550 --- optionals/compat_rhs_gref3/CfgMagazines.hpp | 9 +++++++++ optionals/compat_rhs_gref3/CfgWeapons.hpp | 3 +++ optionals/compat_rhs_gref3/config.cpp | 1 + 3 files changed, 13 insertions(+) create mode 100644 optionals/compat_rhs_gref3/CfgMagazines.hpp diff --git a/optionals/compat_rhs_gref3/CfgMagazines.hpp b/optionals/compat_rhs_gref3/CfgMagazines.hpp new file mode 100644 index 0000000000..f5e84fca6c --- /dev/null +++ b/optionals/compat_rhs_gref3/CfgMagazines.hpp @@ -0,0 +1,9 @@ +class CfgMagazines { + class CA_Magazine; + class rhsgref_50Rnd_792x57_SmE_drum: CA_Magazine { // drum, but still just a belt + ACE_isBelt = 1; + }; + class rhsgref_296Rnd_792x57_SmE_belt: CA_Magazine { + ACE_isBelt = 1; + }; +}; diff --git a/optionals/compat_rhs_gref3/CfgWeapons.hpp b/optionals/compat_rhs_gref3/CfgWeapons.hpp index 7abf45e9a4..f7408af2ba 100644 --- a/optionals/compat_rhs_gref3/CfgWeapons.hpp +++ b/optionals/compat_rhs_gref3/CfgWeapons.hpp @@ -77,4 +77,7 @@ class CfgWeapons { ACE_barrelTwist=240; ACE_barrelLength=658; }; + class rhs_weap_mg42_base: Rifle_Base_F { + ACE_Overheating_allowSwapBarrel = 1; + }; }; diff --git a/optionals/compat_rhs_gref3/config.cpp b/optionals/compat_rhs_gref3/config.cpp index b7cef32194..60b5032dd1 100644 --- a/optionals/compat_rhs_gref3/config.cpp +++ b/optionals/compat_rhs_gref3/config.cpp @@ -14,4 +14,5 @@ class CfgPatches { }; #include "CfgAmmo.hpp" +#include "CfgMagazines.hpp" #include "CfgWeapons.hpp"