Skip to content

Commit

Permalink
Add Spearhead 1944 (SPE) compatibility (#1264)
Browse files Browse the repository at this point in the history
Co-authored-by: jonpas <[email protected]>
Co-authored-by: PabstMirror <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2023
1 parent 44ddb06 commit aba8192
Show file tree
Hide file tree
Showing 15 changed files with 903 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/compat_spe/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
idi\acre\addons\compat_spe

6 changes: 6 additions & 0 deletions addons/compat_spe/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class CfgVehicles {
#include "SPE_Backpacks.hpp"
#include "SPE_Planes.hpp"
#include "SPE_Tanks.hpp"
#include "SPE_Wheeled.hpp"
};
9 changes: 9 additions & 0 deletions addons/compat_spe/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Some items in this component (this folder and all subfolders)
are licensed differently from the project's license or have
additional terms of use!

Following files and/or folders with all its subfolders and
everything in them may not be distributed outside of ACRE2
without explicit permission of the Heavy Ordnance Works team.

- SPE_normandy.fakewrp
4 changes: 4 additions & 0 deletions addons/compat_spe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
compat_spe
===

Compatibility with Arma 3 Creator DLC: [Spearhead 1944](https://spearhead-1944.com/).
21 changes: 21 additions & 0 deletions addons/compat_spe/SPE_Backpacks.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class B_SPE_AssaultPack_Base;

// American
class B_SPE_US_Radio: B_SPE_AssaultPack_Base {
class TransportItems {
class _xx_ACRE_PRC77 {
count = 1;
name = "ACRE_PRC77";
};
};
};

// German
class B_SPE_GER_Radio: B_SPE_AssaultPack_Base {
class TransportItems {
class _xx_ACRE_PRC77 {
count = 1;
name = "ACRE_PRC77";
};
};
};
106 changes: 106 additions & 0 deletions addons/compat_spe/SPE_Planes.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
// see SPE_Tanks.hpp for explanation of values

class Plane_Base_F;

class SPE_Plane_base: Plane_Base_F {
acre_hasInfantryPhone = 0;
acre_infantryPhoneDisableRinging = 1;

class AcreIntercoms {
class Intercom_1 {
displayName = CSTRING(Intercom_Crew);
shortName = CSTRING(Intercom_Short);
allowedPositions[] = {"crew"};
disabledPositions[] = {};
limitedPositions[] = {{"cargo", "all"}};
masterPositions[] = {"crew"};
numLimitedPositions = 1;
connectedByDefault = 1;
};
};

class AcreRacks {
class Rack_1 {
displayName = CSTRING(RadioSet1_US);
shortName = CSTRING(RadioSet1_Short);
componentname = "ACRE_VRC64";
allowedPositions[] = {"driver","copilot"};
disabledPositions[] = {};
defaultComponents[] = {};
mountedRadio = "ACRE_PRC77";
isRadioRemovable = 0;
intercom[] = {"none"};
};
class Rack_2 {
displayName = CSTRING(RadioSet2_US);
shortName = CSTRING(RadioSet2_Short);
componentname = "ACRE_VRC64";
allowedPositions[] = {"driver","copilot"};
disabledPositions[] = {};
defaultComponents[] = {};
mountedRadio = "ACRE_PRC77";
isRadioRemovable = 0;
intercom[] = {"none"};
};
};
};

//American
class SPE_US_Plane_base;

class SPE_P47: SPE_US_Plane_base {
class AcreRacks {
class Rack_1 {
displayName = CSTRING(RadioSet1_US);
shortName = CSTRING(RadioSet1_Short);
mountedRadio = "ACRE_PRC77";
componentname = "ACRE_VRC64";
allowedPositions[] = {"driver"};
disabledPositions[] = {};
defaultComponents[] = {};
isRadioRemovable = 0;
intercom[] = {"none"};
};
class Rack_2 {
displayName = CSTRING(RadioSet2_US);
shortName = CSTRING(RadioSet2_Short);
mountedRadio = "ACRE_PRC77";
componentname = "ACRE_VRC64";
allowedPositions[] = {"driver"};
disabledPositions[] = {};
defaultComponents[] = {};
isRadioRemovable = 0;
intercom[] = {"none"};
};
};
};

//German
class SPE_GER_Plane_base;

class SPE_FW190F8: SPE_GER_Plane_base {
class AcreRacks {
class Rack_1 {
displayName = CSTRING(RadioSet1_GER);
shortName = CSTRING(RadioSet1_Short);
mountedRadio = "ACRE_PRC77";
componentname = "ACRE_VRC64";
allowedPositions[] = {"driver"};
disabledPositions[] = {};
defaultComponents[] = {};
isRadioRemovable = 0;
intercom[] = {"none"};
};
class Rack_2 {
displayName = CSTRING(RadioSet2_GER);
shortName = CSTRING(RadioSet2_Short);
mountedRadio = "ACRE_PRC77";
componentname = "ACRE_VRC64";
allowedPositions[] = {"driver"};
disabledPositions[] = {};
defaultComponents[] = {};
isRadioRemovable = 0;
intercom[] = {"none"};
};
};
};
Loading

0 comments on commit aba8192

Please sign in to comment.