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

SPE Compat - Add CSW support #10285

Merged
merged 18 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions addons/compat_spe/compat_spe_csw/ACE_CSW_Groups.hpp

This file was deleted.

94 changes: 94 additions & 0 deletions addons/compat_spe/compat_spe_csw/CfgMagazineGroups.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
class EGVAR(csw,groups) {
// --- Gun Turrets -------------------------------------------------------------
class SPE_50Rnd_762x63 {
SPE_50Rnd_762x63 = 1;
};
class SPE_100Rnd_762x63 {
SPE_100Rnd_762x63 = 1;
};

class SPE_50Rnd_762x63_M1 {
SPE_50Rnd_762x63_M1 = 1;
};
class SPE_100Rnd_762x63_M1 {
SPE_100Rnd_762x63_M1 = 1;
};

class SPE_50Rnd_762x63_M2_AP {
SPE_50Rnd_762x63_M2_AP = 1;
};
class SPE_100Rnd_762x63_M2_AP {
SPE_100Rnd_762x63_M2_AP = 1;
};

class SPE_50Rnd_762x63_Tracer {
SPE_50Rnd_762x63_Tracer = 1;
};
class SPE_100Rnd_762x63_Tracer {
SPE_100Rnd_762x63_Tracer = 1;
};

class SPE_50Rnd_792x57 {
SPE_50Rnd_792x57 = 1;
};
class SPE_100Rnd_792x57 {
SPE_100Rnd_792x57 = 1;
SPE_250Rnd_792x57 = 1;
};

class SPE_50Rnd_792x57_sS {
SPE_50Rnd_792x57_sS = 1;
};
class SPE_100Rnd_792x57_sS {
SPE_100Rnd_792x57_sS = 1;
SPE_250Rnd_792x57_sS = 1;
};

class SPE_50Rnd_792x57_SMK {
SPE_50Rnd_792x57_SMK = 1;
};
class SPE_100Rnd_792x57_SMK {
SPE_100Rnd_792x57_SMK = 1;
SPE_250Rnd_792x57_SMK = 1;
};

class SPE_50Rnd_792x57_Tracer {
SPE_50Rnd_792x57_Tracer = 1;
};
class SPE_100Rnd_792x57_Tracer {
SPE_100Rnd_792x57_Tracer = 1;
};

// Makes it compatible with other mods' .50 BMG
class EGVAR(csw,100Rnd_127x99_mag) {
SPE_100Rnd_127x99_M2 = 1;
};
johnb432 marked this conversation as resolved.
Show resolved Hide resolved
class SPE_100Rnd_127x99_M2: EGVAR(csw,100Rnd_127x99_mag) {};

// --- Mortars -------------------------------------------------------------
class SPE_1Rnd_81mmHE_M1_M43A1 {
SPE_8Rnd_81mmHE_M1_M43A1 = 1;
SPE_1Rnd_81mmHE_M1_M43A1 = 1;
};
class SPE_1Rnd_81mmWP_M1_M57 {
SPE_8Rnd_81mmWP_M1_M57 = 1;
SPE_1Rnd_81mmWP_M1_M57 = 1;
};
class SPE_81mm_M1_M57_SmokeShell {
SPE_8rnd_81mm_M1_M57_SmokeShell = 1;
SPE_81mm_M1_M57_SmokeShell = 1;
};

class SPE_1Rnd_81mm_FA_Mle_1932_HE {
SPE_8Rnd_81mm_FA_Mle_1932_HE = 1;
SPE_1Rnd_81mm_FA_Mle_1932_HE = 1;
};
class SPE_81mm_FA_Mle_1932_Smoke {
SPE_8Rnd_81mm_FA_Mle_1932_Smoke = 1;
SPE_81mm_FA_Mle_1932_Smoke = 1;
};
class SPE_81mm_FA_Mle_1932_Illu {
SPE_8Rnd_81mm_FA_Mle_1932_Illu = 1;
SPE_81mm_FA_Mle_1932_Illu = 1;
};
};
26 changes: 26 additions & 0 deletions addons/compat_spe/compat_spe_csw/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// In SPE 1.1.1, the tracer magazines don't have proper names
class CfgMagazines {
class SPE_50Rnd_762x63;
class SPE_50Rnd_762x63_Tracer: SPE_50Rnd_762x63 {
displayName = SUBCSTRING(50Rnd_762x63_Tracer);
displayNameShort = "$STR_A3_tracer_dns";
};

class SPE_100Rnd_762x63;
class SPE_100Rnd_762x63_Tracer: SPE_100Rnd_762x63 {
displayName = SUBCSTRING(100Rnd_762x63_Tracer);
displayNameShort = "$STR_A3_tracer_dns";
};

class SPE_50Rnd_792x57;
class SPE_50Rnd_792x57_Tracer: SPE_50Rnd_792x57 {
displayName = SUBCSTRING(50Rnd_792x57_Tracer);
displayNameShort = "$STR_A3_tracer_dns";
};

class SPE_100Rnd_792x57;
class SPE_100Rnd_792x57_Tracer: SPE_100Rnd_792x57 {
displayName = SUBCSTRING(100Rnd_792x57_Tracer);
displayNameShort = "$STR_A3_tracer_dns";
};
};
Loading