From 91bdad94093ab2f54608233c7aea25febfeaa8e4 Mon Sep 17 00:00:00 2001 From: ulteq Date: Sun, 19 Nov 2017 19:05:36 +0100 Subject: [PATCH] Advanced Ballistics - 'RHS: GREF' compatibility update (#5792) --- optionals/compat_rhs_gref3/CfgAmmo.hpp | 25 +++++++ optionals/compat_rhs_gref3/CfgWeapons.hpp | 80 +++++++++++++++++++++++ optionals/compat_rhs_gref3/config.cpp | 1 + 3 files changed, 106 insertions(+) create mode 100644 optionals/compat_rhs_gref3/CfgWeapons.hpp diff --git a/optionals/compat_rhs_gref3/CfgAmmo.hpp b/optionals/compat_rhs_gref3/CfgAmmo.hpp index 70603287d0..e43ab2c692 100644 --- a/optionals/compat_rhs_gref3/CfgAmmo.hpp +++ b/optionals/compat_rhs_gref3/CfgAmmo.hpp @@ -3,4 +3,29 @@ class CfgAmmo { class rhsgref_ammo_rkg3em: GrenadeHand { // Scripted shaped charge ace_frag_force = 0; }; + class BulletBase; + class rhs_ammo_762x25_Ball: BulletBase { + ACE_caliber=7.874; + ACE_bulletLength=13.856; + ACE_bulletMass=5.5728; + ACE_ammoTempMuzzleVelocityShifts[]={-2.655, -2.547, -2.285, -2.012, -1.698, -1.280, -0.764, -0.153, 0.596, 1.517, 2.619}; + ACE_ballisticCoefficients[]={0.17}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={360, 380, 400}; + ACE_barrelLengths[]={101.6, 152.4, 228.6}; + }; + class rhs_ammo_792x57_Ball: BulletBase { + ACE_caliber=8.077; + ACE_bulletLength=28.651; + ACE_bulletMass=12.7008; + ACE_ammoTempMuzzleVelocityShifts[]={-26.55, -25.47, -22.85, -20.12, -16.98, -12.80, -7.64, -1.53, 5.96, 15.17, 26.19}; + ACE_ballisticCoefficients[]={0.315}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={785, 800, 815}; + ACE_barrelLengths[]={508.0, 599.948, 660.4}; + }; }; diff --git a/optionals/compat_rhs_gref3/CfgWeapons.hpp b/optionals/compat_rhs_gref3/CfgWeapons.hpp new file mode 100644 index 0000000000..7abf45e9a4 --- /dev/null +++ b/optionals/compat_rhs_gref3/CfgWeapons.hpp @@ -0,0 +1,80 @@ + +class CfgWeapons { + class rhs_weap_kar98k_Base_F; + class rhs_weap_kar98k: rhs_weap_kar98k_Base_F { + ACE_barrelTwist=240; + ACE_barrelLength=600; + }; + class rhs_weap_m38_Base_F; + class rhs_weap_m38: rhs_weap_m38_Base_F { + ACE_barrelTwist=250; + ACE_barrelLength=315; + }; + class rhs_weap_m38_rail; + class rhs_weap_mosin_sbr: rhs_weap_m38_rail { + ACE_barrelTwist=240; + ACE_barrelLength=254; + }; + class rhs_weap_m70_base; + class rhs_weap_m70ab2: rhs_weap_m70_base { + ACE_barrelTwist=240; + ACE_barrelLength=415; + }; + class rhs_weap_m92: rhs_weap_m70_base { + ACE_barrelTwist=240; + ACE_barrelLength=254; + }; + class rhs_weap_m76: rhs_weap_m70_base { + ACE_barrelTwist=250; + ACE_barrelLength=200; + }; + class rhs_weap_m21_base; + class rhs_weap_m21: rhs_weap_m21_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=460; + }; + class rhs_weap_m21a: rhs_weap_m21_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=290; + }; + class rhs_weap_m21a_pr: rhs_weap_m21_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=290; + }; + class rhs_weap_m21a_pr_pbg40: rhs_weap_m21_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=290; + }; + class rhs_weap_m21s: rhs_weap_m21_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=375; + }; + class rhs_weap_m21s_pr: rhs_weap_m21a_pr { + ACE_barrelTwist=177.8; + ACE_barrelLength=375; + }; + class Rifle_Base_F; + class rhs_weap_savz58_base : Rifle_Base_F { + ACE_barrelTwist=240; + ACE_barrelLength=390; + }; + class rhs_weap_stgw57_base; + class rhs_weap_stgw57: rhs_weap_stgw57_base { + ACE_barrelTwist=270; + ACE_barrelLength=583; + }; + class rhs_weap_g36_base; + class rhs_weap_g36c: rhs_weap_g36_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=228.6; + }; + class rhs_weap_g36kv: rhs_weap_g36_base { + ACE_barrelTwist=177.8; + ACE_barrelLength=317.5; + }; + class Rifle_Long_Base_F; + class rhs_weap_m84: Rifle_Long_Base_F { + ACE_barrelTwist=240; + ACE_barrelLength=658; + }; +}; diff --git a/optionals/compat_rhs_gref3/config.cpp b/optionals/compat_rhs_gref3/config.cpp index dd52014798..b7cef32194 100644 --- a/optionals/compat_rhs_gref3/config.cpp +++ b/optionals/compat_rhs_gref3/config.cpp @@ -14,3 +14,4 @@ class CfgPatches { }; #include "CfgAmmo.hpp" +#include "CfgWeapons.hpp"