Skip to content

Commit

Permalink
General - Use subcomponent macro (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike-MF <[email protected]>
  • Loading branch information
jonpas and Mike-MF authored Sep 9, 2023
1 parent cbe705d commit 66d1038
Show file tree
Hide file tree
Showing 62 changed files with 141 additions and 119 deletions.
1 change: 1 addition & 0 deletions addons/african_militia/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main", "tacu_assets"};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 3 additions & 2 deletions addons/african_militia/subconfig_ace/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_African_Militia_B_Medic",
Expand All @@ -15,10 +15,11 @@ class CfgPatches {
"ace_explosives",
"ace_medical_treatment"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/african_militia/subconfig_ace/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT african_militia_ace
#define COMPONENT_BEAUTIFIED African Militia ACE
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT ace
#define SUBCOMPONENT_BEAUTIFIED ACE
#include "..\script_component.hpp"
5 changes: 3 additions & 2 deletions addons/african_militia/subconfig_cup/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
// Backpacks
Expand All @@ -20,10 +20,11 @@ class CfgPatches {
"tacu_assets_cup",
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/african_militia/subconfig_cup/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT african_militia_cup
#define COMPONENT_BEAUTIFIED African Militia CUP
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT cup
#define SUBCOMPONENT_BEAUTIFIED CUP
#include "..\script_component.hpp"
1 change: 1 addition & 0 deletions addons/african_north/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main", "tacu_assets"};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
1 change: 1 addition & 0 deletions addons/african_south/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main", "tacu_assets"};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 3 additions & 2 deletions addons/african_south/subconfig_ace/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_African_South_B_Medic",
Expand All @@ -14,10 +14,11 @@ class CfgPatches {
"ace_explosives",
"ace_medical_treatment"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/african_south/subconfig_ace/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT african_south_ace
#define COMPONENT_BEAUTIFIED African South ACE
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT ace
#define SUBCOMPONENT_BEAUTIFIED ACE
#include "..\script_component.hpp"
5 changes: 3 additions & 2 deletions addons/african_south/subconfig_cup/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_African_South_V_B_D30",
Expand All @@ -18,10 +18,11 @@ class CfgPatches {
"tacu_assets_cup",
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/african_south/subconfig_cup/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT african_south_cup
#define COMPONENT_BEAUTIFIED African South CUP
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT cup
#define SUBCOMPONENT_BEAUTIFIED CUP
#include "..\script_component.hpp"
1 change: 1 addition & 0 deletions addons/ammunition/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main"};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 0 additions & 5 deletions addons/ammunition/subconfig_CUP/script_component.hpp

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
Expand All @@ -11,10 +11,11 @@ class CfgPatches {
"tacu_ammunition",
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
3 changes: 3 additions & 0 deletions addons/ammunition/subconfig_cup/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define SUBCOMPONENT cup
#define SUBCOMPONENT_BEAUTIFIED CUP
#include "..\script_component.hpp"
1 change: 1 addition & 0 deletions addons/assets/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main"};
author = ECSTRING(main,Author);
authors[] = {"Mike, GilleeDoo"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 3 additions & 2 deletions addons/assets/subconfig_cup/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_Assets_AGS_base",
Expand All @@ -27,10 +27,11 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"tacu_assets", "CUP_Weapons_LoadOrder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
8 changes: 3 additions & 5 deletions addons/assets/subconfig_cup/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#define COMPONENT assets_cup
#define COMPONENT_BEAUTIFIED Assets CUP
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#include "..\script_macros.hpp"
#define SUBCOMPONENT cup
#define SUBCOMPONENT_BEAUTIFIED CUP
#include "..\script_component.hpp"
1 change: 1 addition & 0 deletions addons/baf/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main", "tacu_assets"};
author = ECSTRING(main,Author);
authors[] = {"GilleeDoo, Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 3 additions & 2 deletions addons/baf/subconfig_ace/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_BAF_B_Demolitions_Fieldpack_Arid",
Expand All @@ -18,10 +18,11 @@ class CfgPatches {
"ace_explosives",
"ace_medical_treatment"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/baf/subconfig_ace/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT baf_ace
#define COMPONENT_BEAUTIFIED British Armed Forces ACE
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT ace
#define SUBCOMPONENT_BEAUTIFIED ACE
#include "..\script_component.hpp"
5 changes: 3 additions & 2 deletions addons/baf/subconfig_cup/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_BAF_V_B_Arid_L11A1",
Expand All @@ -21,10 +21,11 @@ class CfgPatches {
"tacu_assets_cup",
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/baf/subconfig_cup/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT baf_cup
#define COMPONENT_BEAUTIFIED British Armed Forces CUP
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT cup
#define SUBCOMPONENT_BEAUTIFIED CUP
#include "..\script_component.hpp"
1 change: 1 addition & 0 deletions addons/cartel_greek/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class CfgPatches {
};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
Expand Down
1 change: 1 addition & 0 deletions addons/faction_overwrites/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main", "tacu_ammunition"};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 3 additions & 2 deletions addons/faction_overwrites/subconfig_cup/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
Expand All @@ -11,10 +11,11 @@ class CfgPatches {
"tacu_cup_ammunition",
"CUP_Creatures_People_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/faction_overwrites/subconfig_cup/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT faction_overwrites_cup
#define COMPONENT_BEAUTIFIED Faction Overwrites CUP
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT cup
#define SUBCOMPONENT_BEAUTIFIED CUP
#include "..\script_component.hpp"
5 changes: 3 additions & 2 deletions addons/faction_overwrites/subconfig_mu/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
Expand All @@ -16,10 +16,11 @@ class CfgPatches {
"MU_mercs",
"MU_RU"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
7 changes: 3 additions & 4 deletions addons/faction_overwrites/subconfig_mu/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define COMPONENT faction_overwrites_mu
#define COMPONENT_BEAUTIFIED Faction Overwrites Missing Units
#include "\x\tacu\addons\main\script_mod.hpp"
#include "\x\tacu\addons\main\script_macros.hpp"
#define SUBCOMPONENT mu
#define SUBCOMPONENT_BEAUTIFIED Missing Units
#include "..\script_component.hpp"
1 change: 1 addition & 0 deletions addons/foreign_legion/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class CfgPatches {
requiredAddons[] = {"tacu_main", "tacu_assets"};
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};
Expand Down
5 changes: 3 additions & 2 deletions addons/foreign_legion/subconfig_ace/config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {
"TACU_Foreign_Legion_B_Demolitions_AssaultPack",
Expand All @@ -15,10 +15,11 @@ class CfgPatches {
"ace_explosives",
"ace_medical_treatment"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

Expand Down
Loading

0 comments on commit 66d1038

Please sign in to comment.