From 3ffc3edd46fcf0b3f62193c7a1688fc1b7c3ff10 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Wed, 27 Nov 2024 18:04:46 +0100 Subject: [PATCH] Compatiblity - Fix Esseker grid (#229) --- .../compatibility/map_esseker/CfgWorlds.hpp | 11 +++++++++++ addons/compatibility/map_esseker/config.cpp | 19 +++++++++++++++++++ .../map_esseker/script_component.hpp | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 addons/compatibility/map_esseker/CfgWorlds.hpp create mode 100644 addons/compatibility/map_esseker/config.cpp create mode 100644 addons/compatibility/map_esseker/script_component.hpp diff --git a/addons/compatibility/map_esseker/CfgWorlds.hpp b/addons/compatibility/map_esseker/CfgWorlds.hpp new file mode 100644 index 0000000..82e7eae --- /dev/null +++ b/addons/compatibility/map_esseker/CfgWorlds.hpp @@ -0,0 +1,11 @@ +class CfgWorlds { + class CAWorld; + class Stratis: CAWorld { + class Grid; + }; + class Esseker: Stratis { + class Grid: Grid { + offsetY = 12288; + }; + }; +}; diff --git a/addons/compatibility/map_esseker/config.cpp b/addons/compatibility/map_esseker/config.cpp new file mode 100644 index 0000000..e00dfa2 --- /dev/null +++ b/addons/compatibility/map_esseker/config.cpp @@ -0,0 +1,19 @@ +#include "script_component.hpp" + +class CfgPatches { + class SUBADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = { + "Esseker" + }; + skipWhenMissingDependencies = 1; + author = "ArmaForces"; + authors[] = {"veteran29"}; + VERSION_CONFIG; + }; +}; + +#include "CfgWorlds.hpp" diff --git a/addons/compatibility/map_esseker/script_component.hpp b/addons/compatibility/map_esseker/script_component.hpp new file mode 100644 index 0000000..4c0ecdd --- /dev/null +++ b/addons/compatibility/map_esseker/script_component.hpp @@ -0,0 +1,2 @@ +#define SUBCOMPONENT map_esseker +#include "..\script_component.hpp"