From 6507acdbabef0c8154f6c962551eb52e27ba7a49 Mon Sep 17 00:00:00 2001 From: commy2 Date: Fri, 5 Feb 2016 20:04:26 +0100 Subject: [PATCH] optional pbo to disable cross hair --- addons/nocrosshair/$PBOPREFIX$ | 1 + addons/nocrosshair/CfgInGameUI.hpp | 6 ++++++ addons/nocrosshair/README.md | 11 +++++++++++ addons/nocrosshair/config.cpp | 18 ++++++++++++++++++ addons/nocrosshair/script_component.hpp | 18 ++++++++++++++++++ optionals/nocrosshair/$PBOPREFIX$ | 1 + optionals/nocrosshair/CfgInGameUI.hpp | 6 ++++++ optionals/nocrosshair/README.md | 11 +++++++++++ optionals/nocrosshair/config.cpp | 16 ++++++++++++++++ optionals/nocrosshair/script_component.hpp | 12 ++++++++++++ 10 files changed, 100 insertions(+) create mode 100644 addons/nocrosshair/$PBOPREFIX$ create mode 100644 addons/nocrosshair/CfgInGameUI.hpp create mode 100644 addons/nocrosshair/README.md create mode 100644 addons/nocrosshair/config.cpp create mode 100644 addons/nocrosshair/script_component.hpp create mode 100644 optionals/nocrosshair/$PBOPREFIX$ create mode 100644 optionals/nocrosshair/CfgInGameUI.hpp create mode 100644 optionals/nocrosshair/README.md create mode 100644 optionals/nocrosshair/config.cpp create mode 100644 optionals/nocrosshair/script_component.hpp diff --git a/addons/nocrosshair/$PBOPREFIX$ b/addons/nocrosshair/$PBOPREFIX$ new file mode 100644 index 0000000000..8296f48d6e --- /dev/null +++ b/addons/nocrosshair/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\nocrosshair \ No newline at end of file diff --git a/addons/nocrosshair/CfgInGameUI.hpp b/addons/nocrosshair/CfgInGameUI.hpp new file mode 100644 index 0000000000..cdaf4eba78 --- /dev/null +++ b/addons/nocrosshair/CfgInGameUI.hpp @@ -0,0 +1,6 @@ + +class CfgInGameUI { + class Cursor { + weapon = ""; // "\A3\ui_f\data\igui\cfg\cursors\weapon_ca.paa"; + }; +}; diff --git a/addons/nocrosshair/README.md b/addons/nocrosshair/README.md new file mode 100644 index 0000000000..ac9bcf43e0 --- /dev/null +++ b/addons/nocrosshair/README.md @@ -0,0 +1,11 @@ +ace_nocrosshair +=========== + +Removes weapon crosshair. + + +## Maintainers + +The people responsible for merging changes to this component or answering potential questions. + +- [commy2](https://github.com/commy2) diff --git a/addons/nocrosshair/config.cpp b/addons/nocrosshair/config.cpp new file mode 100644 index 0000000000..b7528917ef --- /dev/null +++ b/addons/nocrosshair/config.cpp @@ -0,0 +1,18 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + ACE_isOptional = 1; + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author = ECSTRING(common,ACETeam); + authors[] = {"commy2"}; + url = ECSTRING(main,URL); + VERSION_CONFIG; + }; +}; + +#include "CfgInGameUI.hpp" diff --git a/addons/nocrosshair/script_component.hpp b/addons/nocrosshair/script_component.hpp new file mode 100644 index 0000000000..5f3bea04c6 --- /dev/null +++ b/addons/nocrosshair/script_component.hpp @@ -0,0 +1,18 @@ +#define COMPONENT nocrosshair +#define COMPONENT_BEAUTIFIED No Crosshair +#include "\z\ace\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE +// #define CBA_DEBUG_SYNCHRONOUS +// #define ENABLE_PERFORMANCE_COUNTERS + +#ifdef DEBUG_ENABLED_NOCROSSHAIR + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_ENABLED_NOCROSSHAIR + #define DEBUG_SETTINGS DEBUG_ENABLED_NOCROSSHAIR +#endif + +#include "\z\ace\addons\main\script_macros.hpp" diff --git a/optionals/nocrosshair/$PBOPREFIX$ b/optionals/nocrosshair/$PBOPREFIX$ new file mode 100644 index 0000000000..8296f48d6e --- /dev/null +++ b/optionals/nocrosshair/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\nocrosshair \ No newline at end of file diff --git a/optionals/nocrosshair/CfgInGameUI.hpp b/optionals/nocrosshair/CfgInGameUI.hpp new file mode 100644 index 0000000000..cdaf4eba78 --- /dev/null +++ b/optionals/nocrosshair/CfgInGameUI.hpp @@ -0,0 +1,6 @@ + +class CfgInGameUI { + class Cursor { + weapon = ""; // "\A3\ui_f\data\igui\cfg\cursors\weapon_ca.paa"; + }; +}; diff --git a/optionals/nocrosshair/README.md b/optionals/nocrosshair/README.md new file mode 100644 index 0000000000..ac9bcf43e0 --- /dev/null +++ b/optionals/nocrosshair/README.md @@ -0,0 +1,11 @@ +ace_nocrosshair +=========== + +Removes weapon crosshair. + + +## Maintainers + +The people responsible for merging changes to this component or answering potential questions. + +- [commy2](https://github.com/commy2) diff --git a/optionals/nocrosshair/config.cpp b/optionals/nocrosshair/config.cpp new file mode 100644 index 0000000000..fbe984b3ce --- /dev/null +++ b/optionals/nocrosshair/config.cpp @@ -0,0 +1,16 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + ACE_isOptional = 1; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author[] = {"commy2"}; + authorUrl = "https://github.com/commy2"; + VERSION_CONFIG; + }; +}; + +#include "CfgInGameUI.hpp" diff --git a/optionals/nocrosshair/script_component.hpp b/optionals/nocrosshair/script_component.hpp new file mode 100644 index 0000000000..639c46376f --- /dev/null +++ b/optionals/nocrosshair/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT nocrosshair +#include "\z\ace\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_NOCROSSHAIR + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_ENABLED_NOCROSSHAIR + #define DEBUG_SETTINGS DEBUG_ENABLED_NOCROSSHAIR +#endif + +#include "\z\ace\addons\main\script_macros.hpp" \ No newline at end of file