From a2d4de605b6b465646e369f79140f9dacb7e83dc Mon Sep 17 00:00:00 2001 From: commy2 Date: Thu, 26 Mar 2015 14:08:53 +0100 Subject: [PATCH] hide rearm action for the player --- addons/norearm/$PBOPREFIX$ | 1 + addons/norearm/CfgActions.hpp | 7 +++++++ addons/norearm/config.cpp | 15 +++++++++++++++ addons/norearm/script_component.hpp | 12 ++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 addons/norearm/$PBOPREFIX$ create mode 100644 addons/norearm/CfgActions.hpp create mode 100644 addons/norearm/config.cpp create mode 100644 addons/norearm/script_component.hpp diff --git a/addons/norearm/$PBOPREFIX$ b/addons/norearm/$PBOPREFIX$ new file mode 100644 index 0000000000..c6ac3a0406 --- /dev/null +++ b/addons/norearm/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\norearm \ No newline at end of file diff --git a/addons/norearm/CfgActions.hpp b/addons/norearm/CfgActions.hpp new file mode 100644 index 0000000000..336c31273a --- /dev/null +++ b/addons/norearm/CfgActions.hpp @@ -0,0 +1,7 @@ + +class CfgActions { + class None; + class Rearm: None { + show = 0; + }; +}; diff --git a/addons/norearm/config.cpp b/addons/norearm/config.cpp new file mode 100644 index 0000000000..3477258612 --- /dev/null +++ b/addons/norearm/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_common"}; + author[] = {"commy2"}; + authorUrl = "https://github.com/commy2"; + VERSION_CONFIG; + }; +}; + +#include "CfgActions.hpp" diff --git a/addons/norearm/script_component.hpp b/addons/norearm/script_component.hpp new file mode 100644 index 0000000000..d2e95ee569 --- /dev/null +++ b/addons/norearm/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT norearm +#include "\z\ace\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_NOREARM + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_ENABLED_NOREARM + #define DEBUG_SETTINGS DEBUG_ENABLED_NOREARM +#endif + +#include "\z\ace\addons\main\script_macros.hpp" \ No newline at end of file