From 76e9b132d74f6e5f496f72122269ce02b23badae Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 24 Feb 2017 19:21:42 -0600 Subject: [PATCH] Add RHS GREF compat for RKG-3 grenade (#4944) --- addons/main/CfgSettings.hpp | 1 + optionals/compat_rhs_gref3/$PBOPREFIX$ | 1 + optionals/compat_rhs_gref3/CfgAmmo.hpp | 6 ++++++ optionals/compat_rhs_gref3/config.cpp | 16 ++++++++++++++++ optionals/compat_rhs_gref3/script_component.hpp | 6 ++++++ 5 files changed, 30 insertions(+) create mode 100644 optionals/compat_rhs_gref3/$PBOPREFIX$ create mode 100644 optionals/compat_rhs_gref3/CfgAmmo.hpp create mode 100644 optionals/compat_rhs_gref3/config.cpp create mode 100644 optionals/compat_rhs_gref3/script_component.hpp diff --git a/addons/main/CfgSettings.hpp b/addons/main/CfgSettings.hpp index 58cb824a6f..dcb78ffb60 100644 --- a/addons/main/CfgSettings.hpp +++ b/addons/main/CfgSettings.hpp @@ -10,6 +10,7 @@ class CfgSettings { //Warnings for missing RHS compat pbos compat_rhs_afrf3[] = {"ace_compat_rhs_afrf3", {VERSION_AR}, "isClass (configFile >> 'CfgPatches' >> 'rhs_main')"}; compat_rhs_usf3[] = {"ace_compat_rhs_usf3", {VERSION_AR}, "isClass (configFile >> 'CfgPatches' >> 'rhsusf_main')"}; + compat_rhs_gref3[] = {"ace_compat_rhs_gref3", {VERSION_AR}, "isClass (configFile >> 'CfgPatches' >> 'rhsgref_main')"}; }; }; }; diff --git a/optionals/compat_rhs_gref3/$PBOPREFIX$ b/optionals/compat_rhs_gref3/$PBOPREFIX$ new file mode 100644 index 0000000000..6f777c4475 --- /dev/null +++ b/optionals/compat_rhs_gref3/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\compat_rhs_gref3 diff --git a/optionals/compat_rhs_gref3/CfgAmmo.hpp b/optionals/compat_rhs_gref3/CfgAmmo.hpp new file mode 100644 index 0000000000..70603287d0 --- /dev/null +++ b/optionals/compat_rhs_gref3/CfgAmmo.hpp @@ -0,0 +1,6 @@ +class CfgAmmo { + class GrenadeHand; + class rhsgref_ammo_rkg3em: GrenadeHand { // Scripted shaped charge + ace_frag_force = 0; + }; +}; diff --git a/optionals/compat_rhs_gref3/config.cpp b/optionals/compat_rhs_gref3/config.cpp new file mode 100644 index 0000000000..dd52014798 --- /dev/null +++ b/optionals/compat_rhs_gref3/config.cpp @@ -0,0 +1,16 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"rhsgref_main", "rhsgref_c_weapons"}; + author = ECSTRING(common,ACETeam); + url = ECSTRING(main,URL); + VERSION_CONFIG; + }; +}; + +#include "CfgAmmo.hpp" diff --git a/optionals/compat_rhs_gref3/script_component.hpp b/optionals/compat_rhs_gref3/script_component.hpp new file mode 100644 index 0000000000..12f0e45522 --- /dev/null +++ b/optionals/compat_rhs_gref3/script_component.hpp @@ -0,0 +1,6 @@ +#define COMPONENT compat_rhs_gref3 +#define COMPONENT_BEAUTIFIED RHS GREF Compatibility + +#include "\z\ace\addons\main\script_mod.hpp" + +#include "\z\ace\addons\main\script_macros.hpp"