From 5e23f7d84242173926963fae5f5fc6ebb05ef708 Mon Sep 17 00:00:00 2001 From: ulteq Date: Fri, 24 Apr 2015 17:12:03 +0200 Subject: [PATCH] Added optional hlcmods_g3 compatibility pbo --- optionals/hlcmods_g3_comp/CfgWeapons.hpp | 45 +++++++++++++++++++ optionals/hlcmods_g3_comp/config.cpp | 14 ++++++ .../hlcmods_g3_comp/script_component.hpp | 5 +++ 3 files changed, 64 insertions(+) create mode 100644 optionals/hlcmods_g3_comp/CfgWeapons.hpp create mode 100644 optionals/hlcmods_g3_comp/config.cpp create mode 100644 optionals/hlcmods_g3_comp/script_component.hpp diff --git a/optionals/hlcmods_g3_comp/CfgWeapons.hpp b/optionals/hlcmods_g3_comp/CfgWeapons.hpp new file mode 100644 index 0000000000..e45fe34048 --- /dev/null +++ b/optionals/hlcmods_g3_comp/CfgWeapons.hpp @@ -0,0 +1,45 @@ + +class CfgWeapons +{ + class hlc_g3_base; + class hlc_rifle_g3sg1: hlc_g3_base + { + ACE_barrelTwist=12; + ACE_barrelLength=17.700001; + }; + class hlc_rifle_psg1: hlc_rifle_g3sg1 + { + ACE_barrelTwist=12; + ACE_barrelLength=25.6; + }; + class hlc_rifle_g3a3: hlc_rifle_g3sg1 + { + ACE_barrelTwist=12; + ACE_barrelLength=17.700001; + }; + class hlc_rifle_g3a3ris: hlc_rifle_g3a3 + { + ACE_barrelTwist=12; + ACE_barrelLength=17.700001; + }; + class hlc_rifle_g3ka4: hlc_rifle_g3a3 + { + ACE_barrelTwist=12; + ACE_barrelLength=12.4; + }; + class HLC_Rifle_g3ka4_GL: hlc_rifle_g3ka4 + { + ACE_barrelTwist=12; + ACE_barrelLength=12.4; + }; + class hlc_rifle_hk51: hlc_rifle_g3sg1 + { + ACE_barrelTwist=12; + ACE_barrelLength=8.3100004; + }; + class hlc_rifle_hk53: hlc_rifle_g3sg1 + { + ACE_barrelTwist=7; + ACE_barrelLength=8.3100004; + }; +}; \ No newline at end of file diff --git a/optionals/hlcmods_g3_comp/config.cpp b/optionals/hlcmods_g3_comp/config.cpp new file mode 100644 index 0000000000..6b79486364 --- /dev/null +++ b/optionals/hlcmods_g3_comp/config.cpp @@ -0,0 +1,14 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"hlcweapons_g3"}; + author[]={"Ruthberg"}; + VERSION_CONFIG; + }; +}; + +#include "CfgWeapons.hpp" diff --git a/optionals/hlcmods_g3_comp/script_component.hpp b/optionals/hlcmods_g3_comp/script_component.hpp new file mode 100644 index 0000000000..642977f87b --- /dev/null +++ b/optionals/hlcmods_g3_comp/script_component.hpp @@ -0,0 +1,5 @@ +#define COMPONENT hlcweapons_g3_comp + +#include "\z\ace\addons\main\script_mod.hpp" + +#include "\z\ace\addons\main\script_macros.hpp"