Skip to content

Commit

Permalink
Add Hidden Component (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF authored Jul 8, 2021
1 parent f7d0346 commit 3d0f4ff
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 29 deletions.
1 change: 0 additions & 1 deletion addons/duplicates/$PBOPREFIX$

This file was deleted.

8 changes: 0 additions & 8 deletions addons/duplicates/CfgAmmo.hpp

This file was deleted.

1 change: 1 addition & 0 deletions addons/hidden/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\tacgt\addons\hidden
28 changes: 13 additions & 15 deletions addons/duplicates/CfgWeapons.hpp → addons/hidden/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
class CfgMagazines {
class CA_Magazine;
class CUP_TimeBomb_M;
// Thrown Grenades - Perform exactly the same as M67s.
class HandGrenade;
class CUP_HandGrenade_M67: HandGrenade {
scope = 1;
};
class CUP_HandGrenade_L109A1_HE: CUP_HandGrenade_M67 {
scope = 1;
};
class CUP_HandGrenade_L109A2_HE: CUP_HandGrenade_M67 {
scope = 1;
};

// AT-15 Anti-Tank Mine
// Placed Explosives
class CUP_TimeBomb_M;
class CUP_Mine_M: CUP_TimeBomb_M {
scope = 1;
};

// TM46 Anti-Tank Mine
class CUP_MineE_M: CUP_TimeBomb_M {
scope = 1;
};

// Satchel Charge
class CUP_PipeBomb_M: CUP_TimeBomb_M {
scope = 1;
};

// Small IED (Urban)
class CUP_IED_V1_M: CUP_Mine_M {
scope = 1;
};

// Large IED (Urban)
class CUP_IED_V2_M: CUP_IED_V1_M {
scope = 1;
};

// Small IED (Dug-in)
class CUP_IED_V3_M: CUP_IED_V1_M {
scope = 1;
};

// Large IED (Dug-in)
class CUP_IED_V4_M: CUP_IED_V1_M {
scope = 1;
};
Expand Down
54 changes: 54 additions & 0 deletions addons/hidden/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
class CfgVehicles {
class CUP_supplyCrate_Base;
class CUP_VABox: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_GER: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_USARMY: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_CDF: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_GB: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_NAPA: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_PMC: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_RACS: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_TK_GUE: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_UN: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_ChDKZ: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_RU: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_SLA: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_TK: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_TKMILITIA: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_USMC: CUP_supplyCrate_Base {
scope = 1;
};
class CUP_VABox_ACR: CUP_supplyCrate_Base {
scope = 1;
};
};
8 changes: 5 additions & 3 deletions addons/duplicates/config.cpp → addons/hidden/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ class CfgPatches {
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"tacgt_main",
"CUP_Weapons_AmmoBoxes",
"CUP_Weapons_Grenades",
"CUP_Weapons_Put"
"CUP_Weapons_Put",
"CUP_Weapons_ACE_compat"
};
author = ECSTRING(main,Authors);
authors[] = {"Tyrone"};
Expand All @@ -19,5 +21,5 @@ class CfgPatches {
};
};

#include "CfgAmmo.hpp"
#include "CfgWeapons.hpp"
#include "CfgMagazines.hpp"
#include "CfgVehicles.hpp"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define COMPONENT duplicates
#define COMPONENT_BEAUTIFIED Duplicates
#define COMPONENT hidden
#define COMPONENT_BEAUTIFIED Hidden
#include "\x\tacgt\addons\main\script_mod.hpp"
#include "\x\tacgt\addons\main\script_macros.hpp"

0 comments on commit 3d0f4ff

Please sign in to comment.