Skip to content

Commit

Permalink
Realistic Weights - Add Apex / Contact / Anti-Tank Weapons (#8357)
Browse files Browse the repository at this point in the history
* Add Apex / Contact / Tanks Weapons

* Inheritance fix

* Fix UBCs

* Weight for the RPK
  • Loading branch information
LinkIsGrim authored Oct 10, 2021
1 parent e3986f4 commit baff363
Showing 1 changed file with 113 additions and 4 deletions.
117 changes: 113 additions & 4 deletions addons/realisticweights/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
class CfgWeapons {
class Rifle_Base_F;
class Rifle;
class Rifle_Base_F: Rifle {
class WeaponSlotsInfo;
};
class Rifle_Long_Base_F: Rifle_Base_F {
class WeaponSlotsInfo;
};
Expand Down Expand Up @@ -112,6 +115,87 @@ class CfgWeapons {
};
};

// - HK416A5 --------------------------------------------------------------
class arifle_SPAR_01_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 68.8;
};
};
class arifle_SPAR_01_GL_base_F: arifle_SPAR_01_base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 96.8;
};
};
class arifle_SPAR_02_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 76.9;
};
};

// - HK417A2 --------------------------------------------------------------
class arifle_SPAR_03_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 104.5;
};
};

// - AK15 - Weights taken from the 2020 AK-15 -----------------------------
class arifle_AK12_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 82.5;
};
};
class arifle_AK12_GL_base_F: arifle_AK12_base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 113.5;
};
};
class arifle_AK12U_base_F: arifle_AK12_base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 65;
};
};
class arifle_RPK12_base_F: arifle_AK12_base_F { // Estimated difference by comparing RPK to AKM (+1.5kg)
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 115.5;
};
};

// - AKM ------------------------------------------------------------------
class arifle_AKM_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 67;
};
};

// - AKS-74U --------------------------------------------------------------
class arifle_AKS_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 60;
};
};

// - MSBS -----------------------------------------------------------------
class arifle_MSBS65_base_F: Rifle_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 82.7;
};
};
class arifle_MSBS65_GL_base_F: arifle_MSBS65_base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 124.5;
};
};
class arifle_MSBS65_UBS_base_F: arifle_MSBS65_base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 115.7;
};
};
class arifle_MSBS65_Mark_base_F: arifle_MSBS65_base_F {
class WeaponSlotsInfo {
mass = 101;
};
};

// - LMGs ---------------------------------------------------------------------

Expand All @@ -129,6 +213,13 @@ class CfgWeapons {
};
};

// - FN Minimi SPW --------------------------------------------------------
class LMG_03_base_F: Rifle_Long_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 154.4;
};
};


// - DMRs ---------------------------------------------------------------------

Expand Down Expand Up @@ -250,6 +341,27 @@ class CfgWeapons {
};
};

// - RPG-7 ----------------------------------------------------------------
class launch_RPG7_F: Launcher_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 139;
};
};

// - MAAWS Mk4 ------------------------------------------------------------
class launch_MRAWS_base_F: Launcher_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 145.5;
};
};

// - Metis-M --------------------------------------------------------------
class launch_Vorona_base_F: Launcher_Base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 224.8;
};
};


// - Pistols ------------------------------------------------------------------

Expand Down Expand Up @@ -323,9 +435,6 @@ class CfgWeapons {

// - M14 ------------------------------------------------------------------
class DMR_06_base_F: Rifle_Long_Base_F {
class WeaponSlotsInfo;
};
class srifle_DMR_06_camo_F: DMR_06_base_F {
class WeaponSlotsInfo: WeaponSlotsInfo {
mass = 92;
};
Expand Down

0 comments on commit baff363

Please sign in to comment.