Skip to content

Commit 1c8ab6e

Browse files
authored
Compat SPE - Add calibers to ammunition for use in ace_rearm (#11184)
* Add rearm compat to SPE compat * Update shells.hpp * Update shells.hpp
1 parent 7af641e commit 1c8ab6e

File tree

6 files changed

+158
-52
lines changed

6 files changed

+158
-52
lines changed

addons/compat_spe/CfgAmmo/bullets.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,27 @@ class SPE_Bullet_Vehicle_base;
22

33
class SPE_B_127x99_Mixed: SubmunitionBase {
44
ACE_caliber = 12.954;
5+
EGVAR(rearm,caliber) = 12.7; // rounded to 13
56
};
67

78
class SPE_B_127x99_Ball: SPE_Bullet_Vehicle_base {
89
ACE_caliber = 12.954;
10+
EGVAR(rearm,caliber) = 12.7;
911
};
1012
class SPE_B_127x99_API: SPE_B_127x99_Ball {
1113
EGVAR(vehicle_damage,incendiary) = 1;
1214
};
1315

16+
class SPE_B_75x54_Ball: SPE_Bullet_base {
17+
EGVAR(rearm,caliber) = 7.5; // rounded to 8
18+
};
19+
class SPE_B_762x63_Ball: SPE_Bullet_base {
20+
EGVAR(rearm,caliber) = 7.62;
21+
};
22+
class SPE_B_792x57_Ball: SPE_Bullet_base {
23+
EGVAR(rearm,caliber) = 7.92;
24+
};
25+
1426
// FLAK
1527
class SPE_Bullet_AA_base;
1628
class SPE_SprGr_FlaK_38: SPE_Bullet_AA_base {
@@ -21,6 +33,7 @@ class SPE_SprGr_FlaK_38: SPE_Bullet_AA_base {
2133
EGVAR(frag,gurney_c) = 2930;
2234
EGVAR(frag,gurney_k) = 1/2;
2335
EGVAR(frag,classes)[] = {"ACE_frag_tiny", "ACE_frag_small_HD"};
36+
EGVAR(rearm,caliber) = 20;
2437
};
2538

2639
class SPE_Bullet_AP_base;
@@ -32,4 +45,5 @@ class SPE_PzGr_FlaK_38_AP_T: SPE_Bullet_AP_base {
3245
EGVAR(frag,gurney_c) = 2930;
3346
EGVAR(frag,gurney_k) = 1/2;
3447
EGVAR(frag,classes)[] = {"ACE_frag_tiny", "ACE_frag_small_HD"};
48+
EGVAR(rearm,caliber) = 20;
3549
};

addons/compat_spe/CfgAmmo/explosives.hpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
class ShellBase;
21
class SubmunitionBase;
3-
class MineCore;
4-
class PipeBombBase;
5-
class SPE_MAIN_pipebomb: PipeBombBase {};
6-
class SPE_ShellHE_base: ShellBase {};
7-
class SPE_ShellHEAT_base: ShellBase {};
8-
class RocketBase;
9-
class SPE_MAIN_mine: MineCore {};
10-
class SPE_Rocket_base: RocketBase {};
2+
class SPE_MAIN_pipebomb;
3+
class SPE_ShellHE_base;
4+
class SPE_ShellHEAT_base;
5+
class SPE_MAIN_mine;
6+
class SPE_Rocket_base;
117
class SPE_PzFaust_30m: SPE_Rocket_base {
128
EGVAR(frag,enabled) = 1;
139
EGVAR(frag,force) = 1;
@@ -34,6 +30,7 @@ class SPE_Sh_M43A1_81_HE: SubmunitionBase {
3430
EGVAR(frag,gurney_c) = 2750;
3531
EGVAR(frag,gurney_k) = 1/2;
3632
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_small"};
33+
EGVAR(rearm,caliber) = 82;
3734
};
3835
class SPE_M48_HE: SPE_ShellHE_base {
3936
EGVAR(frag,enabled) = 1;
@@ -43,6 +40,7 @@ class SPE_M48_HE: SPE_ShellHE_base {
4340
EGVAR(frag,gurney_c) = 2750;
4441
EGVAR(frag,gurney_k) = 1/2;
4542
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_small"};
43+
EGVAR(rearm,caliber) = 75;
4644
};
4745
class SPE_M101_M1_HE: SPE_ShellHE_base {
4846
EGVAR(frag,enabled) = 1;
@@ -52,6 +50,7 @@ class SPE_M101_M1_HE: SPE_ShellHE_base {
5250
EGVAR(frag,gurney_c) = 2750;
5351
EGVAR(frag,gurney_k) = 1/2;
5452
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_large"};
53+
EGVAR(rearm,caliber) = 105;
5554
};
5655
class SPE_S_105L28_Gr38: SPE_ShellHE_base {
5756
EGVAR(frag,enabled) = 1;
@@ -61,6 +60,7 @@ class SPE_S_105L28_Gr38: SPE_ShellHE_base {
6160
EGVAR(frag,gurney_c) = 2750;
6261
EGVAR(frag,gurney_k) = 1/2;
6362
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_large"};
63+
EGVAR(rearm,caliber) = 105;
6464
};
6565
class SPE_S_105L28_Gr39HlC: SPE_ShellHEAT_base {
6666
EGVAR(frag,enabled) = 1;
@@ -70,6 +70,7 @@ class SPE_S_105L28_Gr39HlC: SPE_ShellHEAT_base {
7070
EGVAR(frag,gurney_c) = 2750;
7171
EGVAR(frag,gurney_k) = 1/2;
7272
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_large"};
73+
EGVAR(rearm,caliber) = 105;
7374
};
7475
class SPE_R_280mm_WkSpr: SubmunitionBase {
7576
EGVAR(frag,enabled) = 1;

addons/compat_spe/CfgAmmo/grenades.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
class GrenadeBase;
21
class SPE_GrenadeHand_base;
3-
class SPE_Grenade_base: GrenadeBase {};
2+
class SPE_Grenade_base;
43

54
class SPE_US_M15: SPE_GrenadeHand_base {
65
ACE_damageType = QGVAR(explosive_incendiary);
@@ -107,8 +106,7 @@ class SPE_G_SPRGR_30_Detonation: SPE_Grenade_base {
107106
EGVAR(frag,classes)[] = {"ACE_frag_small_HD"};
108107
};
109108

110-
class SmokeShell;
111-
class SPE_SmokeShell_base: SmokeShell {};
109+
class SPE_SmokeShell_base;
112110
class SPE_US_AN_M14: SPE_SmokeShell_base {
113111
EGVAR(grenades,incendiary) = 1;
114112
};

addons/compat_spe/CfgAmmo/melee.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
class BulletBase;
2-
class BulletCore;
3-
class BulletBase_NonAceAB: BulletCore {};
4-
class SPE_Bullet_base: BulletBase {};
1+
class BulletBase_NonAceAB;
2+
class SPE_Bullet_base;
53

64
class SPE_B_Bayonet: SPE_Bullet_base {
75
ACE_damageType = "stab";

0 commit comments

Comments
 (0)