Optionals - Add No Medical and No Realistic Names components (#8187)

* Add nomedical and norealisticnames components

* Add fire component disabling

* Make it work

* remove headlight skipping

* update preprocess syntax

* fix git screwup

* Apply suggestions from code review

---------

Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
Co-authored-by: jonpas <jonpas33@gmail.com>
This commit is contained in:
Dystopian 2023-09-04 04:56:54 +03:00 committed by GitHub
parent 36f34ec551
commit 10ffcea9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 187 additions and 0 deletions

2
addons/fire/addon.toml Normal file
View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -18,3 +25,5 @@ class CfgPatches {
#include "CfgSounds.hpp" #include "CfgSounds.hpp"
#include "ACE_Medical_Treatment_Actions.hpp" #include "ACE_Medical_Treatment_Actions.hpp"
#include "RscTitles.hpp" #include "RscTitles.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -21,3 +28,5 @@ class CfgPatches {
class ACE_Tests { class ACE_Tests {
medicalHitpoints = QPATHTOF(dev\test_hitpointConfigs.sqf); medicalHitpoints = QPATHTOF(dev\test_hitpointConfigs.sqf);
}; };
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -16,3 +23,5 @@ class CfgPatches {
#include "ACE_Settings.hpp" #include "ACE_Settings.hpp"
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -16,3 +23,5 @@ class CfgPatches {
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#include "ACE_Settings.hpp" #include "ACE_Settings.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -27,3 +34,5 @@ class ACE_Extensions {
}; };
}; };
*/ */
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -21,3 +28,5 @@ class CfgPatches {
#include "CfgMoves.hpp" #include "CfgMoves.hpp"
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -20,3 +27,5 @@ class CfgPatches {
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "RscTitles.hpp" #include "RscTitles.hpp"
#include "RscInGameUI.hpp" #include "RscInGameUI.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -18,3 +25,5 @@ class CfgPatches {
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "gui.hpp" #include "gui.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -16,3 +23,5 @@ class CfgPatches {
#include "Statemachine.hpp" #include "Statemachine.hpp"
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -16,3 +23,5 @@ class CfgPatches {
#include "ACE_settings.hpp" #include "ACE_settings.hpp"
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -22,3 +29,5 @@ class CfgPatches {
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#include "Cfg3DEN.hpp" #include "Cfg3DEN.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\nomedical\script_component.hpp")
#define PATCH_SKIP "No Medical"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -15,3 +22,5 @@ class CfgPatches {
}; };
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#endif

View File

@ -0,0 +1,2 @@
[preprocess]
enabled = false

View File

@ -1,5 +1,12 @@
#include "script_component.hpp" #include "script_component.hpp"
#if __has_include("\z\ace\addons\norealisticnames\script_component.hpp")
#define PATCH_SKIP "No Realistic Names"
#endif
#ifdef PATCH_SKIP
ACE_PATCH_NOT_LOADED(ADDON,PATCH_SKIP)
#else
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
name = COMPONENT_NAME; name = COMPONENT_NAME;
@ -20,3 +27,5 @@ class CfgPatches {
#include "CfgMagazines.hpp" #include "CfgMagazines.hpp"
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#endif

View File

@ -0,0 +1 @@
z\ace\addons\nomedical

View File

@ -0,0 +1,15 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {};
author = ECSTRING(common,ACETeam);
authors[] = {"Dystopian"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

View File

@ -0,0 +1,6 @@
#define COMPONENT nomedical
#define COMPONENT_BEAUTIFIED No Medical
#include "\z\ace\addons\main\script_mod.hpp"
#include "\z\ace\addons\main\script_macros.hpp"

View File

@ -0,0 +1 @@
z\ace\addons\norealisticnames

View File

@ -0,0 +1,15 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {};
author = ECSTRING(common,ACETeam);
authors[] = {"Dystopian"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

View File

@ -0,0 +1,6 @@
#define COMPONENT norealisticnames
#define COMPONENT_BEAUTIFIED No Realistic Names
#include "\z\ace\addons\main\script_mod.hpp"
#include "\z\ace\addons\main\script_macros.hpp"