Skip to content

Commit

Permalink
Ammunition - Add Bolt action magazines (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF authored Nov 19, 2023
1 parent 602b0a6 commit 435773f
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions addons/ammunition/cup/CfgMagazineWells.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ class CfgMagazineWells {
QCLASS(30Rnd_762x39_AP_CZ)
};
};

class CBA_762x51_CZ750 {
ADDON[] = {
QCLASS(10Rnd_762x51_EPR_CZ750),
QCLASS(10Rnd_762x51_AP_CZ750)
};
};

class CBA_762x51_FAL {
ADDON[] = {
QCLASS(20Rnd_762x51_Ball_FAL),
Expand Down Expand Up @@ -229,4 +237,11 @@ class CfgMagazineWells {
QCLASS(30Rnd_9x39_AP)
};
};

class CBA_300WM_AICS {
ADDON[] = {
QCLASS(5Rnd_300WM_EPR_G22),
QCLASS(5Rnd_300WM_AP_G22)
};
};
};
3 changes: 3 additions & 0 deletions addons/ammunition/cup/CfgMagazines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class CfgMagazines {
class 30Rnd_556x45_Stanag;
class CUP_100Rnd_556x45_BetaCMag;
class CUP_100Rnd_TE4_Green_Tracer_556x45_M249;
class CUP_10Rnd_762x51_CZ750;
class CUP_12Rnd_45ACP_mk23;
class CUP_13Rnd_9x19_Browning_HP;
class CUP_15Rnd_9x19_M9;
Expand All @@ -23,6 +24,7 @@ class CfgMagazines {
class CUP_30Rnd_9x39_SP5_VIKHR_M;
class CUP_30Rnd_TE1_Green_Tracer_556x45_G36;
class CUP_40Rnd_46x30_MP7;
class CUP_5Rnd_762x67_G22;
class CUP_5Rnd_B_Saiga12_Buck_00;
class CUP_60Rnd_545x39_AK74M_M;
class CUP_60Rnd_556x45_SureFire;
Expand All @@ -39,4 +41,5 @@ class CfgMagazines {
#include "magazines\762x51.hpp"
#include "magazines\9x19.hpp"
#include "magazines\9x39.hpp"
#include "magazines\300WM.hpp"
};
18 changes: 18 additions & 0 deletions addons/ammunition/cup/magazines/300WM.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// .300WM, using 7.62x54r Ammo as it's borderline the same, especially for Bolt-action rifles.

// .300WM G22
class CLASS(5Rnd_300WM_EPR_G22): CUP_5Rnd_762x67_G22 {
MACRO_SCOPE;
ammo = QCLASS(762x54r_EPR);
displayName = ".300WM 5Rnd G22 [T] (EPR)";
displayNameShort = "EPR Tracer";
descriptionShort = ".300WM EPR Tracer";
tracersEvery = 1;
mass = 3.5;
};
class CLASS(5Rnd_300WM_AP_G22): CLASS(5Rnd_300WM_EPR_G22) {
ammo = QCLASS(762x54r_AP);
displayName = ".300WM 5Rnd G22 [T] (AP)";
displayNameShort = "AP Tracer";
descriptionShort = ".300WM AP Tracer";
};
17 changes: 17 additions & 0 deletions addons/ammunition/cup/magazines/762x51.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// 7.62x51mm CZ750
class CLASS(10Rnd_762x51_EPR_CZ750): CUP_10Rnd_762x51_CZ750 {
MACRO_SCOPE;
ammo = QCLASS(762x51_EPR);
displayName = "7.62mm 10Rnd CZ750 [T] (EPR)";
displayNameShort = "EPR Tracer";
descriptionShort = "7.62x51mm EPR Tracer";
tracersEvery = 1;
mass = 7;
};
class CLASS(10Rnd_762x51_AP_CZ750): CLASS(10Rnd_762x51_EPR_CZ750) {
ammo = QCLASS(762x51_AP);
displayName = "7.62mm 10Rnd CZ750 [T] (AP)";
displayNameShort = "AP Tracer";
descriptionShort = "7.62x51mm AP Tracer";
};

// 7.62x51mm FAL
class CLASS(20Rnd_762x51_Ball_FAL): CUP_20Rnd_762x51_FNFAL_M {
MACRO_SCOPE;
Expand Down

0 comments on commit 435773f

Please sign in to comment.