mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
36f34ec551
commit
10ffcea9b7
2
addons/fire/addon.toml
Normal file
2
addons/fire/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical/addon.toml
Normal file
2
addons/medical/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_ai/addon.toml
Normal file
2
addons/medical_ai/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_blood/addon.toml
Normal file
2
addons/medical_blood/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_damage/addon.toml
Normal file
2
addons/medical_damage/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_engine/addon.toml
Normal file
2
addons/medical_engine/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_feedback/addon.toml
Normal file
2
addons/medical_feedback/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_gui/addon.toml
Normal file
2
addons/medical_gui/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_statemachine/addon.toml
Normal file
2
addons/medical_statemachine/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_status/addon.toml
Normal file
2
addons/medical_status/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_treatment/addon.toml
Normal file
2
addons/medical_treatment/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/medical_vitals/addon.toml
Normal file
2
addons/medical_vitals/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
2
addons/realisticnames/addon.toml
Normal file
2
addons/realisticnames/addon.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[preprocess]
|
||||||
|
enabled = false
|
@ -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
|
||||||
|
1
optionals/nomedical/$PBOPREFIX$
Normal file
1
optionals/nomedical/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
|||||||
|
z\ace\addons\nomedical
|
15
optionals/nomedical/config.cpp
Normal file
15
optionals/nomedical/config.cpp
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
6
optionals/nomedical/script_component.hpp
Normal file
6
optionals/nomedical/script_component.hpp
Normal 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"
|
1
optionals/norealisticnames/$PBOPREFIX$
Normal file
1
optionals/norealisticnames/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
|||||||
|
z\ace\addons\norealisticnames
|
15
optionals/norealisticnames/config.cpp
Normal file
15
optionals/norealisticnames/config.cpp
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
6
optionals/norealisticnames/script_component.hpp
Normal file
6
optionals/norealisticnames/script_component.hpp
Normal 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"
|
Loading…
Reference in New Issue
Block a user