Skip to content

Commit

Permalink
Add RPAG-2 Component (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF authored Apr 24, 2024
1 parent a2000f7 commit 6437f7c
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 4 deletions.
1 change: 1 addition & 0 deletions addons/rpag_2/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\tacgt\addons\rpag_2
12 changes: 12 additions & 0 deletions addons/rpag_2/CfgAmmo.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class CfgAmmo {
class CUP_R_RSHG2_HE;
class CLASS(rpag_thermobaric): CUP_R_RSHG2_HE {
craterEffects = "ArtyShellCrater";
explosionEffects = "BombExplosion";
explosionTime = 0;
hit = 100;
indirectHit = 70;
indirectHitRange = 8;
timeToLive = 15;
};
};
11 changes: 11 additions & 0 deletions addons/rpag_2/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class CfgMagazines {
class CUP_RSHG2_M;
class CLASS(rpag_thermobaric_rocket): CUP_RSHG2_M {
ammo = QCLASS(rpag_thermobaric);
author = ECSTRING(main,Author);
descriptionShort = "You have to be retarded to fire this.. or Mick";
displayName = "RPAG-2 Thermobaric Rocket";
displayNameShort = "Thermobaric";
scope = 2;
};
};
36 changes: 36 additions & 0 deletions addons/rpag_2/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class CfgWeapons {
class CUP_launch_RShG2_Loaded;
class CUP_launch_RShG2;
class CUP_launch_RShG2_Used;

class CLASS(rpag_2_loaded): CUP_launch_RShG2_Loaded {
author = ECSTRING(main,Author);
baseWeapon = QCLASS(rpag_2);
descriptionShort = "";
displayName = "RPAG-2 Thermobaric Launcher";
dlc = QUOTE(PREFIX);
hiddenSelections[] = {"Camo"};
hiddenSelectionsTextures[] = {QPATHTOF(data\rpag2_co.paa)};
magazines[] = {QCLASS(rpag_thermobaric_rocket)};
picture = QPATHTOF(ui\rpag2_ca.paa);
};
class CLASS(rpag_2): CUP_launch_RShG2 {
author = ECSTRING(main,Author);
descriptionShort = "Thermobaric missile launcher, unguided.";
displayName = "RPAG-2 Thermobaric Launcher";
dlc = QUOTE(PREFIX);
baseWeapon = QCLASS(rpag_2);
hiddenSelections[] = {"Camo"};
hiddenSelectionsTextures[] = {QPATHTOF(data\rpag2_co.paa)};
picture = QPATHTOF(ui\rpag2_ca.paa);
};
class CLASS(rpag_2_used): CUP_launch_RShG2_Used {
author = ECSTRING(main,Author);
baseWeapon = QCLASS(rpag_2_used);
displayName = "RPAG-2 Thermobaric Launcher (Used)";
dlc = QUOTE(PREFIX);
hiddenSelections[] = {"Camo"};
hiddenSelectionsTextures[] = {QPATHTOF(data\rpag2_co.paa)};
picture = QPATHTOF(ui\rpag2_ca.paa);
};
};
32 changes: 32 additions & 0 deletions addons/rpag_2/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {
QCLASS(rpag_2_loaded),
QCLASS(rpag_2),
QCLASS(rpag_2_used)
};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"tacgt_main",
"tacgt_theseus",
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

class CBA_DisposableLaunchers {
CLASS(rpag_2_loaded)[] = {QCLASS(rpag_2), QCLASS(rpag_2_used)};
};

#include "CfgAmmo.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp"
Binary file added addons/rpag_2/data/rpag2_co.paa
Binary file not shown.
4 changes: 4 additions & 0 deletions addons/rpag_2/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#define COMPONENT rpag_2
#define COMPONENT_BEAUTIFIED RPAG 2
#include "\x\tacgt\addons\main\script_mod.hpp"
#include "\x\tacgt\addons\main\script_macros.hpp"
Binary file added addons/rpag_2/ui/rpag2_ca.paa
Binary file not shown.
1 change: 1 addition & 0 deletions addons/supplies/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CfgVehicles {
MACRO_ADDWEAPON(tacs_MRAWS_Black_F,3);
MACRO_ADDWEAPON(launch_NLAW_F,3);
MACRO_ADDWEAPON(CUP_launch_M136,3);
MACRO_ADDWEAPON(tacgt_rpag_2,2);
};
class TransportBackpacks {};
};
Expand Down
5 changes: 1 addition & 4 deletions addons/supplies/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ class CfgPatches {
"tacgt_theseus",
"tacs_vests",
"ace_medical_treatment",
"CUP_Weapons_Ammunition",
"CUP_Weapons_NVG",
"CUP_Weapons_East_Attachments",
"CUP_Weapons_M136"
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
Expand Down

0 comments on commit 6437f7c

Please sign in to comment.