Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GM Compat - Jam types and Open bolts #8559

Merged
merged 9 commits into from
Oct 19, 2021
33 changes: 30 additions & 3 deletions optionals/compat_gm/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
GVAR(closedBolt) = 0;
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};
class gm_mg3_base: gm_machineGun_base {
EGVAR(overheating,mrbs) = 3000;
EGVAR(overheating,slowdownFactor) = 1;
Expand All @@ -26,8 +29,32 @@ class CfgWeapons {
EGVAR(overpressure,priority) = 1;
EGVAR(overpressure,range) = 10;
};



// SUB MACHINE GUNS
class gm_mp2_base: gm_rifle_base {
GVAR(closedBolt) = 0;
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};
class gm_pm63_base: gm_rifle_base {
GVAR(closedBolt) = 0;
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};

// GRENADE LAUNCHERS
class gm_hk69a1_base: gm_rifle_base {
ace_overheating_jamTypesAllowed = ["Fire","Dud"];
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};
class gm_pallad_d_base: gm_rifle_base {
ace_overheating_jamTypesAllowed = ["Fire","Dud"];
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};

// FLARE GUNS
class gm_pistol_base;
class gm_lp1_base: gm_pistol_base {
ace_overheating_jamTypesAllowed = ["Fire","Dud"];
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};
class gm_p2a1_base: gm_pistol_base {
ace_overheating_jamTypesAllowed = ["Fire","Dud"];
ZluskeN marked this conversation as resolved.
Show resolved Hide resolved
};

// 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;
Expand Down