From 845b813672aca22ae6fa03903b50a237493dee94 Mon Sep 17 00:00:00 2001 From: ZluskeN Date: Tue, 19 Oct 2021 05:50:04 +0200 Subject: [PATCH] GM Compat - Jam types and Open bolts (#8559) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * GM Compat - Jam Types and Open Bolts - Belt-fed Machineguns and SMGs fire from open bolts - Fire and Dud Jam types for Grenade Launchers and Flare Guns * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update optionals/compat_gm/CfgWeapons.hpp Co-authored-by: Björn Dahlgren * Update CfgWeapons.hpp Co-authored-by: Björn Dahlgren --- optionals/compat_gm/CfgWeapons.hpp | 33 +++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/optionals/compat_gm/CfgWeapons.hpp b/optionals/compat_gm/CfgWeapons.hpp index 6565a833dd..b9f402fd85 100644 --- a/optionals/compat_gm/CfgWeapons.hpp +++ b/optionals/compat_gm/CfgWeapons.hpp @@ -8,7 +8,10 @@ class CfgWeapons { EGVAR(overheating,allowSwapBarrel) = 1; EGVAR(overheating,dispersion) = 0.25; }; - class gm_machineGun_base; + class gm_rifle_base; + class gm_machineGun_base: gm_rifle_base { + EGVAR(overheating,closedBolt) = 0; + }; class gm_mg3_base: gm_machineGun_base { EGVAR(overheating,mrbs) = 3000; EGVAR(overheating,slowdownFactor) = 1; @@ -26,8 +29,32 @@ class CfgWeapons { EGVAR(overpressure,priority) = 1; EGVAR(overpressure,range) = 10; }; - - + + // SUB MACHINE GUNS + class gm_mp2_base: gm_rifle_base { + EGVAR(overheating,closedBolt) = 0; + }; + class gm_pm63_base: gm_rifle_base { + EGVAR(overheating,closedBolt) = 0; + }; + + // GRENADE LAUNCHERS + class gm_hk69a1_base: gm_rifle_base { + EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"}; + }; + class gm_pallad_d_base: gm_rifle_base { + EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"}; + }; + + // FLARE GUNS + class gm_pistol_base; + class gm_lp1_base: gm_pistol_base { + EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"}; + }; + class gm_p2a1_base: gm_pistol_base { + EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"}; + }; + // HELMETS #define HEARING_PROTECTION_OPEN EGVAR(hearing,protection) = 0; EGVAR(hearing,lowerVolume) = 0; #define HEARING_PROTECTION_VICCREW EGVAR(hearing,protection) = 0.85; EGVAR(hearing,lowerVolume) = 0.6;