General - Use subcomponent macro (CBA 3.16.0) (#9375)

This commit is contained in:
jonpas 2023-09-12 20:40:38 +02:00 committed by GitHub
parent ebef82d10b
commit 7cbdb7f410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
51 changed files with 170 additions and 174 deletions

View File

@ -1,7 +1,7 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_csla\script_component.hpp"
#define SUBCOMPONENT explosives #define SUBCOMPONENT explosives
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Explosives
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_csla\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_explosives" "ace_explosives"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_gm\script_component.hpp"
#define SUBCOMPONENT explosives #define SUBCOMPONENT explosives
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Explosives
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_gm\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_refuel" "ace_refuel"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_gm\script_component.hpp"
#define SUBCOMPONENT refuel #define SUBCOMPONENT refuel
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Refuel
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_gm\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {QGVAR(2b14_carry), QGVAR(nsv_carry), QGVAR(kord_carry), QGVAR(ags30_carry), QGVAR(spg9_carry), QGVAR(spg9m_carry), QGVAR(metis_carry), QGVAR(kornet_carry)}; weapons[] = {QGVAR(2b14_carry), QGVAR(nsv_carry), QGVAR(kord_carry), QGVAR(ags30_carry), QGVAR(spg9_carry), QGVAR(spg9m_carry), QGVAR(metis_carry), QGVAR(kornet_carry)};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -13,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder", "rhs_main_loadorder",
"ace_csw" "ace_csw"
}; };
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"}; authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT csw
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" #include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT csw #include "\z\ace\addons\csw\script_config_macros_csw.hpp"
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder", "rhs_main_loadorder",
"ace_explosives" "ace_explosives"
}; };
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"}; authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT explosives #define SUBCOMPONENT explosives
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Explosives
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\fastroping\script_macros.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
}; };

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT fastroping
#define SUBCOMPONENT_BEAUTIFIED Fastroping
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp" #include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT fastroping #include "\z\ace\addons\fastroping\script_macros.hpp"
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder", "rhs_main_loadorder",
"ace_nightvision" "ace_nightvision"
}; };
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"}; authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT nightvision #define SUBCOMPONENT nightvision
#undef ADDON #define SUBCOMPONENT_BEUTIFIEID Night Vision
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder", "rhs_main_loadorder",
"ace_refuel" "ace_refuel"
}; };
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"}; authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT refuel #define SUBCOMPONENT refuel
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Refuel
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder", "rhs_main_loadorder",
"ace_scopes" "ace_scopes"
}; };
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"}; authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT scopes #define SUBCOMPONENT scopes
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Scopes
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {QGVAR(dshkm_carry)}; weapons[] = {QGVAR(dshkm_carry)};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
}; };

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT csw
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp" #include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"
#define SUBCOMPONENT csw #include "\z\ace\addons\csw\script_config_macros_csw.hpp"
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -12,6 +12,7 @@ class CfgPatches {
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"
#define SUBCOMPONENT explosives #define SUBCOMPONENT explosives
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Explosives
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\fastroping\script_macros.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
}; };

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT fastroping
#define SUBCOMPONENT_BEAUTIFIED Fastroping
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp" #include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"
#define SUBCOMPONENT fastroping #include "\z\ace\addons\fastroping\script_macros.hpp"
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhssaf_main_loadorder", "rhssaf_main_loadorder",
"ace_explosives" "ace_explosives"
}; };
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {}; authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,10 +1,3 @@
#define COMPONENT compat_rhs_saf3
#define COMPONENT_BEAUTIFIED RHS SAF Compatibility
#include "\z\ace\addons\main\script_mod.hpp"
#include "\z\ace\addons\main\script_macros.hpp"
#define SUBCOMPONENT explosives #define SUBCOMPONENT explosives
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Explosives
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_saf3\script_component.hpp"

View File

@ -7,10 +7,10 @@ class CfgPatches {
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"rhssaf_main_loadorder"}; requiredAddons[] = {"rhssaf_main_loadorder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {}; authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,11 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {QGVAR(m252_carry), QGVAR(m2_carry), QGVAR(mk19_carry), QGVAR(tow_carry)}; weapons[] = {QGVAR(m252_carry), QGVAR(m2_carry), QGVAR(mk19_carry), QGVAR(tow_carry)};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -14,7 +11,12 @@ class CfgPatches {
"ace_csw" "ace_csw"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT csw
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp" #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT csw #include "\z\ace\addons\csw\script_config_macros_csw.hpp"
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_explosives" "ace_explosives"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT explosives #define SUBCOMPONENT explosives
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Explosives
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\fastroping\script_macros.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
}; };

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT fastroping
#define SUBCOMPONENT_BEAUTIFIED Fastroping
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp" #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT fastroping #include "\z\ace\addons\fastroping\script_macros.hpp"
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_javelin" "ace_javelin"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT javelin #define SUBCOMPONENT javelin
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Javelin
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_nightvision" "ace_nightvision"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT nightvision #define SUBCOMPONENT nightvision
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Night Vision
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_refuel" "ace_refuel"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT refuel #define SUBCOMPONENT refuel
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Refuel
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
addonRootClass = QUOTE(COMPONENT); name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_scopes" "ace_scopes"
}; };
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT scopes #define SUBCOMPONENT scopes
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Scopes
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -7,10 +7,10 @@ class CfgPatches {
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"rhsusf_main_loadorder"}; requiredAddons[] = {"rhsusf_main_loadorder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "Fyuran"}; authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "Fyuran"};
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };

View File

@ -1,14 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { requiredAddons[] = {"loadorder_f_vietnam", "ace_trenches"};
"loadorder_f_vietnam", "ace_trenches"
};
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"BaerMitUmlaut", "veteran29"}; authors[] = {"BaerMitUmlaut", "veteran29"};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_sog\script_component.hpp"
#define SUBCOMPONENT trenches #define SUBCOMPONENT trenches
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Trenches
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_sog\script_component.hpp"

View File

@ -1,14 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { requiredAddons[] = {"loadorder_f_vietnam", "ace_compat_sog_trenches", "grad_trenches_main"};
"loadorder_f_vietnam", "ace_compat_sog_trenches", "grad_trenches_main"
};
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"BaerMitUmlaut", "veteran29"}; authors[] = {"BaerMitUmlaut", "veteran29"};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_sog\script_component.hpp"
#define SUBCOMPONENT trenches_grad #define SUBCOMPONENT trenches_grad
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED Trenches GRAD
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_sog\script_component.hpp"

View File

@ -1,7 +1,7 @@
#include "script_component.hpp" #include "script_component.hpp"
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_ws\script_component.hpp"
#define SUBCOMPONENT nouniformrestrictions #define SUBCOMPONENT nouniformrestrictions
#undef ADDON #define SUBCOMPONENT_BEAUTIFIED No Uniform Restrictions
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT) #include "\z\ace\addons\compat_ws\script_component.hpp"

View File

@ -1,9 +1,8 @@
#include "\z\ace\addons\huntir\script_component.hpp" #define SUBCOMPONENT sub
#undef COMPONENT #include "..\script_component.hpp"
#define COMPONENT huntir_sub
class CfgPatches { class CfgPatches {
class ADDON { class SUBADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
@ -12,6 +11,8 @@ class CfgPatches {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
url = ECSTRING(main,URL); url = ECSTRING(main,URL);
VERSION_CONFIG; VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
}; };
}; };

View File

@ -13,8 +13,11 @@
#define REQUIRED_VERSION 2.14 #define REQUIRED_VERSION 2.14
#define REQUIRED_CBA_VERSION {3,15,7} #define REQUIRED_CBA_VERSION {3,15,7}
#ifdef COMPONENT_BEAUTIFIED #ifndef COMPONENT_BEAUTIFIED
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT_BEAUTIFIED) #define COMPONENT_BEAUTIFIED COMPONENT
#else #endif
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT) #ifdef SUBCOMPONENT_BEAUTIFIED
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT_BEAUTIFIED - SUBCOMPONENT_BEAUTIFIED)
#else
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT_BEAUTIFIED)
#endif #endif

View File

@ -29,6 +29,10 @@
and include your mod's script_macros.hpp and include your mod's script_macros.hpp
In your scripts you can then include the addon's component.hpp with relative path) In your scripts you can then include the addon's component.hpp with relative path)
use in subcomponents (subconfigs)
define SUBCOMPONENT and include parent component's script_component.hpp
currently only supported by SUBADDON, additional macros may be added in the future
TODO: TODO:
- Try only to use 1 string type " vs ' - Try only to use 1 string type " vs '
- Evaluate double functions, and simplification - Evaluate double functions, and simplification
@ -54,6 +58,10 @@
#define ADDON DOUBLES(PREFIX,COMPONENT) #define ADDON DOUBLES(PREFIX,COMPONENT)
#define MAIN_ADDON DOUBLES(PREFIX,main) #define MAIN_ADDON DOUBLES(PREFIX,main)
#ifdef SUBCOMPONENT
#define SUBADDON DOUBLES(ADDON,SUBCOMPONENT)
#endif
/* ------------------------------------------- /* -------------------------------------------
Macro: VERSION_CONFIG Macro: VERSION_CONFIG
Define CBA Versioning System config entries. Define CBA Versioning System config entries.