Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Ballistics - 'RHS: GREF' compatibility update #5792

Merged
merged 1 commit into from
Nov 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions optionals/compat_rhs_gref3/CfgAmmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
};
};
80 changes: 80 additions & 0 deletions optionals/compat_rhs_gref3/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -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;
};
};
1 change: 1 addition & 0 deletions optionals/compat_rhs_gref3/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ class CfgPatches {
};

#include "CfgAmmo.hpp"
#include "CfgWeapons.hpp"