From 14745af70b7dd03189d71a17132f486b8b2361a3 Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 18 Jan 2015 08:06:25 +0100 Subject: [PATCH] port difficulties --- TO_MERGE/agm/Difficulties/config.cpp | 47 ------------------------ addons/difficulties/$PBOPREFIX$ | 1 + addons/difficulties/CfgDifficulties.hpp | 33 +++++++++++++++++ addons/difficulties/config.cpp | 15 ++++++++ addons/difficulties/script_component.hpp | 12 ++++++ 5 files changed, 61 insertions(+), 47 deletions(-) delete mode 100644 TO_MERGE/agm/Difficulties/config.cpp create mode 100644 addons/difficulties/$PBOPREFIX$ create mode 100644 addons/difficulties/CfgDifficulties.hpp create mode 100644 addons/difficulties/config.cpp create mode 100644 addons/difficulties/script_component.hpp diff --git a/TO_MERGE/agm/Difficulties/config.cpp b/TO_MERGE/agm/Difficulties/config.cpp deleted file mode 100644 index 1f52136ca7..0000000000 --- a/TO_MERGE/agm/Difficulties/config.cpp +++ /dev/null @@ -1,47 +0,0 @@ - -class CfgPatches { - class AGM_Difficulties { - units[] = {}; - weapons[] = {}; - requiredVersion = 0.60; - requiredAddons[] = {AGM_Core}; - version = "0.95"; - versionStr = "0.95"; - versionAr[] = {0,95,0}; - author[] = {"commy2"}; - authorUrl = "https://github.com/commy2/"; - }; -}; - -class CfgDifficulties { - class Mercenary { - class Flags { - armor[] = {0,0}; - friendlyTag[] = {0,0}; - enemyTag[] = {0,0}; - mineTag[] = {0,0}; - hud[] = {0,1};//{1,1}; - hudPerm[] = {0,0}; - hudWp[] = {0,0}; - hudWpPerm[] = {0,0}; - autoSpot[] = {0,1}; - map[] = {0,0}; - weaponCursor[] = {0,1};//{1,1}; - autoGuideAT[] = {0,0}; - clockIndicator[] = {0,0}; - 3rdPersonView[] = {0,0}; - autoAim[] = {0,0}; - unlimitedSaves[] = {0,0}; - deathMessages[] = {0,1};//{1,1}; - netStats[] = {0,1};//{1,1}; - vonID[] = {0,1}; - cameraShake[] = {1,0}; - hudGroupInfo[] = {0,0}; - extendetInfoType[] = {0,0}; - roughLanding[] = {0,0}; - windEnabled[] = {1,0}; - autoTrimEnabled[] = {0,0}; - stressDamageEnabled[] = {1,0}; - }; - }; -}; diff --git a/addons/difficulties/$PBOPREFIX$ b/addons/difficulties/$PBOPREFIX$ new file mode 100644 index 0000000000..6280fc4731 --- /dev/null +++ b/addons/difficulties/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\difficulties \ No newline at end of file diff --git a/addons/difficulties/CfgDifficulties.hpp b/addons/difficulties/CfgDifficulties.hpp new file mode 100644 index 0000000000..a65d31f1a5 --- /dev/null +++ b/addons/difficulties/CfgDifficulties.hpp @@ -0,0 +1,33 @@ + +class CfgDifficulties { + class Mercenary { + class Flags { + armor[] = {0,0}; + friendlyTag[] = {0,0}; + enemyTag[] = {0,0}; + mineTag[] = {0,0}; + hud[] = {0,1};//{1,1}; + hudPerm[] = {0,0}; + hudWp[] = {0,0}; + hudWpPerm[] = {0,0}; + autoSpot[] = {0,1}; + map[] = {0,0}; + weaponCursor[] = {0,1};//{1,1}; + autoGuideAT[] = {0,0}; + clockIndicator[] = {0,0}; + 3rdPersonView[] = {0,0}; + autoAim[] = {0,0}; + unlimitedSaves[] = {0,0}; + deathMessages[] = {0,1};//{1,1}; + netStats[] = {0,1};//{1,1}; + vonID[] = {0,1}; + cameraShake[] = {1,0}; + hudGroupInfo[] = {0,0}; + extendetInfoType[] = {0,0}; + roughLanding[] = {0,0}; + windEnabled[] = {1,0}; + autoTrimEnabled[] = {0,0}; + stressDamageEnabled[] = {1,0}; + }; + }; +}; diff --git a/addons/difficulties/config.cpp b/addons/difficulties/config.cpp new file mode 100644 index 0000000000..34784706a0 --- /dev/null +++ b/addons/difficulties/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 "CfgDifficulties.hpp" diff --git a/addons/difficulties/script_component.hpp b/addons/difficulties/script_component.hpp new file mode 100644 index 0000000000..bac2935aa7 --- /dev/null +++ b/addons/difficulties/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT difficulties +#include "\z\ace\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_DIFFICULTIES + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_ENABLED_DIFFICULTIES + #define DEBUG_SETTINGS DEBUG_ENABLED_DIFFICULTIES +#endif + +#include "\z\ace\addons\main\script_macros.hpp" \ No newline at end of file