Skip to content

Commit

Permalink
SOG Compat - Jam types and Open bolts (#8563)
Browse files Browse the repository at this point in the history
* SOG Compat - Jam types and Open bolts

- Machineguns and SMGs fire from open bolts
- Fire and Dud Jam types for Grenade Launchers, Revolvers and Shotguns

* Update CfgWeapons.hpp

* Update pistols.hpp

* Update weapons.hpp
  • Loading branch information
ZluskeN authored Oct 19, 2021
1 parent 8cdf0b2 commit 2252eab
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions optionals/compat_sog/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ class CfgWeapons {
#include "CfgWeapons\launchers.hpp"
#include "CfgWeapons\pistols.hpp"
#include "CfgWeapons\uniforms.hpp"
#include "CfgWeapons\weapons.hpp"
};
12 changes: 12 additions & 0 deletions optionals/compat_sog/CfgWeapons/pistols.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#define MX991_FLASHLIGHT_SIZE 1.75

class vn_pistol;
class vn_m79_p: vn_pistol {
EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"};
};
class vn_mk22;
class vn_m10: vn_mk22 {
EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"};
};
class vn_m1895: vn_mk22 {
EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"};
};

class vn_pm;
class vn_fkb1_pm: vn_pm {
ACE_Flashlight_Colour = "white";
Expand Down
25 changes: 25 additions & 0 deletions optionals/compat_sog/CfgWeapons/weapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

class vn_rifle;
class vn_lmg: vn_rifle {
EGVAR(overheating,closedBolt) = 0;
};
class vn_m63a_lmg: vn_rifle {
EGVAR(overheating,closedBolt) = 0;
};
class vn_smg: vn_rifle {
EGVAR(overheating,closedBolt) = 0;
};
class vn_vz61: vn_smg {
EGVAR(overheating,closedBolt) = 1;
};

class vn_mk1_udg: vn_smg {
EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"};
};
class vn_m79: vn_rifle {
EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"};
};
class vn_shotgun;
class vn_izh54: vn_shotgun {
EGVAR(overheating,jamTypesAllowed)[] = {"Fire", "Dud"};
};

0 comments on commit 2252eab

Please sign in to comment.