Update compat_rhs_usf3 (Weapons/Ammo) (#4028)

This commit is contained in:
J3aLeiNe 2016-07-28 23:50:52 +02:00 committed by Glowbal
parent a2a8f53157
commit 7e027ea3b5
2 changed files with 273 additions and 114 deletions

View File

@ -1,92 +1,188 @@
class CfgAmmo
{
class CfgAmmo {
class BulletBase;
class B_127x99_Ball;
class rhsusf_ammo_127x99_M33_Ball: B_127x99_Ball {
ACE_caliber = 12.954;
ACE_bulletLength = 58.674;
ACE_bulletMass = 42.83; // 661gr - Barret technical data
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.620}; // Barret technical data
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900};
ACE_barrelLengths[] = {736.6};
};
class rhsusf_ammo_127x99_mk211: rhsusf_ammo_127x99_M33_Ball {
ACE_caliber = 12.954;
ACE_bulletLength = 58.674;
ACE_bulletMass = 43; // Nammo AS technical data
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.670}; // ?
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900};
ACE_barrelLengths[] = {736.6};
};
class B_762x54_Ball;
class rhsusf_B_300winmag: B_762x54_Ball {
ACE_caliber=7.823;
ACE_bulletLength=37.821;
ACE_bulletMass=14.256;
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.310};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ICAO";
ACE_dragModel=7;
ACE_muzzleVelocities[]={847, 867, 877};
ACE_barrelLengths[]={508.0, 609.6, 660.4};
ACE_caliber = 7.823;
ACE_bulletLength = 37.821;
ACE_bulletMass = 14.256;
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.310};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 7;
ACE_muzzleVelocities[] = {847, 867, 877};
ACE_barrelLengths[] = {508.0, 609.6, 660.4};
};
class B_556x45_Ball;
class rhs_ammo_556x45_M855A1_Ball: B_556x45_Ball {
ACE_caliber = 5.69;
ACE_bulletLength = 23.012;
ACE_bulletMass = 4.0176;
ACE_ammoTempMuzzleVelocityShifts[] = {-27.20, -26.44, -23.76, -21.00, -17.54, -13.10, -7.95, -1.62, 6.24, 15.48, 27.75};
ACE_ballisticCoefficients[] = {0.151};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 7;
ACE_muzzleVelocities[] = {723, 764, 796, 825, 843, 866, 878, 892, 906, 915, 922, 900};
ACE_barrelLengths[] = {210.82, 238.76, 269.24, 299.72, 330.2, 360.68, 391.16, 419.1, 449.58, 480.06, 508.0, 609.6};
};
class rhs_ammo_556x45_Mk318_Ball: B_556x45_Ball {
ACE_caliber=5.69;
ACE_bulletLength=23.012;
ACE_bulletMass=4.0176;
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.307};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ASM";
ACE_dragModel=1;
ACE_muzzleVelocities[]={780, 886, 950};
ACE_barrelLengths[]={254.0, 393.7, 508.0};
ACE_caliber = 5.69;
ACE_bulletLength = 23.012;
ACE_bulletMass = 4.0176;
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.307};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {780, 886, 950};
ACE_barrelLengths[] = {254.0, 393.7, 508.0};
};
class rhs_ammo_556x45_Mk262_Ball: B_556x45_Ball {
ACE_caliber=5.69;
ACE_bulletLength=23.012;
ACE_bulletMass=4.9896;
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.361};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ASM";
ACE_dragModel=1;
ACE_muzzleVelocities[]={624, 816, 832, 838};
ACE_barrelLengths[]={190.5, 368.3, 457.2, 508.0};
ACE_caliber = 5.69;
ACE_bulletLength = 23.012;
ACE_bulletMass = 4.9896;
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.361};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {624, 816, 832, 838};
ACE_barrelLengths[] = {190.5, 368.3, 457.2, 508.0};
};
class rhs_ammo_762x51_M80_Ball: BulletBase {
ACE_caliber=7.823;
ACE_bulletLength=28.956;
ACE_bulletMass=9.4608;
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.2};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ICAO";
ACE_dragModel=7;
ACE_muzzleVelocities[]={700, 800, 820, 833, 845};
ACE_barrelLengths[]={254.0, 406.4, 508.0, 609.6, 660.4};
ACE_caliber = 7.823;
ACE_bulletLength = 28.956;
ACE_bulletMass = 9.4608;
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.2};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 7;
ACE_muzzleVelocities[] = {700, 800, 820, 833, 845};
ACE_barrelLengths[] = {254.0, 406.4, 508.0, 609.6, 660.4};
};
class rhs_ammo_762x51_M118_Special_Ball: rhs_ammo_762x51_M80_Ball {
ACE_caliber=7.823;
ACE_bulletLength=31.496;
ACE_bulletMass=11.34;
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.243};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ICAO";
ACE_dragModel=7;
ACE_muzzleVelocities[]={750, 780, 790, 794};
ACE_barrelLengths[]={406.4, 508.0, 609.6, 660.4};
ACE_caliber = 7.823;
ACE_bulletLength = 31.496;
ACE_bulletMass = 11.34;
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.243};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 7;
ACE_muzzleVelocities[] = {750, 780, 790, 794};
ACE_barrelLengths[] = {406.4, 508.0, 609.6, 660.4};
};
class rhs_ammo_762x51_M993_Ball: rhs_ammo_762x51_M80_Ball {
ACE_caliber=7.823;
ACE_bulletLength=31.496;
ACE_bulletMass=8.2296;
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.377};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ICAO";
ACE_dragModel=1;
ACE_muzzleVelocities[]={875, 910, 930};
ACE_barrelLengths[]={330.2, 406.4, 508.0};
ACE_caliber = 7.823;
ACE_bulletLength = 31.496;
ACE_bulletMass = 8.2296;
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.377};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {875, 910, 930};
ACE_barrelLengths[] = {330.2, 406.4, 508.0};
};
class rhs_ammo_46x30_FMJ: rhs_ammo_556x45_M855A1_Ball { // RUAG Ammotec
ACE_caliber = 4.65;
ACE_bulletLength = 21;
ACE_bulletMass = 2.6;
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.171};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {620};
ACE_barrelLengths[] = {180};
};
class rhs_ammo_46x30_JHP: rhs_ammo_46x30_FMJ { // RUAG Ammotec
ACE_caliber = 4.65;
ACE_bulletLength = 17.4;
ACE_bulletMass = 2.0;
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.112};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {690};
ACE_barrelLengths[] = {180};
};
class rhs_ammo_46x30_AP: rhs_ammo_46x30_FMJ { // RUAG Ammotec
ACE_caliber = 4.65;
ACE_bulletLength = 20.3;
ACE_bulletMass = 2.0;
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.141};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {680};
ACE_barrelLengths[] = {180};
};
class rhs_ammo_45ACP_MHP: BulletBase {
ACE_caliber=11.481;
ACE_bulletLength=17.272;
ACE_bulletMass=14.904;
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.195};
ACE_velocityBoundaries[]={};
ACE_standardAtmosphere="ASM";
ACE_dragModel=1;
ACE_muzzleVelocities[]={230, 250, 285};
ACE_barrelLengths[]={101.6, 127.0, 228.6};
ACE_caliber = 11.481;
ACE_bulletLength = 17.272;
ACE_bulletMass = 14.904;
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.195};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {230, 250, 285};
ACE_barrelLengths[] = {101.6, 127.0, 228.6};
};
class rhs_ammo_9x19_FMJ: BulletBase {
ACE_caliber = 9.017;
ACE_bulletLength = 15.494;
ACE_bulletMass = 8.0352;
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.165};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {340, 370, 400};
ACE_barrelLengths[] = {101.6, 127.0, 228.6};
};
class rhs_ammo_9x19_JHP: BulletBase {
ACE_caliber = 9.017;
ACE_bulletLength = 15.494;
ACE_bulletMass = 8.0352;
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.165};
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {340, 370, 400};
ACE_barrelLengths[] = {101.6, 127.0, 228.6};
};
class M_Titan_AT;

View File

@ -1,24 +1,30 @@
class CfgWeapons
{
class CfgWeapons {
class Pistol_Base_F;
class Rifle_Base_F;
class srifle_EBR_F;
class launch_O_Titan_F;
class UGL_F;
class GM6_base_F;
class rhs_weap_M107_Base_F: GM6_base_F {
ACE_barrelTwist = 381.0;
ACE_barrelLength = 736.6;
};
class rhs_weap_XM2010_Base_F: Rifle_Base_F {
ACE_barrelTwist = 254.0;
ACE_barrelLength = 609.6;
ACE_Overheating_dispersion = 0.75;
};
class rhs_weap_m24sws : rhs_weap_XM2010_Base_F {
ACE_barrelTwist = 285.75;
ACE_barrelLength = 609.6;
}
class arifle_MX_Base_F;
class rhs_weap_m4_Base: arifle_MX_Base_F {
ACE_barrelTwist = 177.8;
ACE_barrelLength = 368.3;
ACE_Overheating_Dispersion[] = {0, 0.001, 0.002, 0.004};
ACE_Overheating_SlowdownFactor[] = {1, 1, 1, 0.9};
ACE_Overheating_JamChance[] = {0, 0.0003, 0.0015, 0.0075};
class M203_GL : UGL_F {
class M203_GL: UGL_F {
magazines[] = {
"rhs_mag_M441_HE",
"rhs_mag_M433_HEDP",
@ -32,7 +38,7 @@ class CfgWeapons
"rhs_mag_M715_green",
"rhs_mag_M716_yellow",
//bis compatibility
// bis compatibility
"1Rnd_HE_Grenade_shell",
"UGL_FlareWhite_F",
"UGL_FlareGreen_F",
@ -60,7 +66,7 @@ class CfgWeapons
"3Rnd_SmokeBlue_Grenade_shell",
"3Rnd_SmokeOrange_Grenade_shell",
//ACE3 Compatibility
// ACE3 Compatibility
"ACE_HuntIR_M203"
};
};
@ -78,7 +84,7 @@ class CfgWeapons
"rhs_mag_M715_green",
"rhs_mag_M716_yellow",
//bis compatibility
// bis compatibility
"1Rnd_HE_Grenade_shell",
"UGL_FlareWhite_F",
"UGL_FlareGreen_F",
@ -106,44 +112,54 @@ class CfgWeapons
"3Rnd_SmokeBlue_Grenade_shell",
"3Rnd_SmokeOrange_Grenade_shell",
//ACE3 Compatibility
// ACE3 Compatibility
"ACE_HuntIR_M203"
};
};
};
class rhs_weap_m4a1;
class rhs_weap_hk416d10: rhs_weap_m4a1 {
ACE_barrelTwist = 177.8;
ACE_barrelLength = 254;
};
class rhs_weap_hk416d145: rhs_weap_hk416d10 {
ACE_barrelTwist = 177.8;
ACE_barrelLength = 368.3;
};
class rhs_weap_m27iar: rhs_weap_m4a1 {
ACE_barrelTwist = 177.8;
ACE_barrelLength = 419.1;
};
class rhs_weap_m4a1_blockII;
class rhs_weap_mk18: rhs_weap_m4a1_blockII {
ACE_barrelTwist = 177.8;
ACE_barrelLength = 261.62;
ACE_Overheating_dispersion = 1;
ACE_Overheating_slowdownFactor = 1;
ACE_Overheating_mrbs = 3000;
};
class rhs_weap_m16a4: rhs_weap_m4_Base {
ACE_barrelTwist = 177.8;
ACE_barrelLength = 508.0;
};
class rhs_weap_lmg_minimipara;
class rhs_weap_lmg_minimi_railed : rhs_weap_lmg_minimipara {
ACE_barrelLength = 465.0;
class rhs_weap_lmg_minimi_railed; // Rifle_Base_F - scope = private;
class rhs_weap_m249_pip_S: rhs_weap_lmg_minimi_railed {
ACE_barrelLength = 414; // 16.3" FN America
ACE_barrelTwist = 177.8;
ACE_Overheating_allowSwapBarrel = 1;
ACE_Overheating_dispersion = 0.75;
ACE_Overheating_slowdownFactor = 1;
ACE_Overheating_mrbs = 3000;
};
class rhs_weap_m240_base;
};
class rhs_weap_m249_pip_L: rhs_weap_lmg_minimi_railed {
ACE_barrelLength = 520.7; // 20.5" FN America
ACE_barrelTwist = 177.8;
ACE_Overheating_allowSwapBarrel = 1;
};
class rhs_weap_m240_base; // Rifle_Long_Base_F
class rhs_weap_m240B: rhs_weap_m240_base {
ACE_barrelTwist = 304.8;
ACE_barrelLength = 629.92;
ACE_Overheating_allowSwapBarrel = 1;
ACE_Overheating_dispersion = 1;
ACE_Overheating_slowdownFactor = 1;
ACE_Overheating_mrbs = 3000;
};
class rhs_weap_m14ebrri: srifle_EBR_F {
ACE_barrelTwist = 304.8;
ACE_barrelLength = 558.8;
ACE_Overheating_dispersion = 0.75;
};
class rhs_weap_sr25: rhs_weap_m14ebrri {
ACE_barrelTwist = 285.75;
@ -163,32 +179,81 @@ class CfgWeapons
ACE_twistDirection = 0;
ACE_barrelLength = 508.0;
};
class SMG_01_F;
class rhsusf_weap_MP7A1_base_f : SMG_01_F {
ACE_barrelTwist = 160.0;
ACE_barrelLength = 180.0;
};
// RHS pistols
class hgun_ACPC2_F;
class rhsusf_weap_m1911a1: hgun_ACPC2_F {
ACE_barrelTwist = 406.4;
ACE_barrelLength = 127.0;
};
class rhsusf_acc_sniper_base;
class rhsusf_acc_LEUPOLDMK4: rhsusf_acc_sniper_base {
ACE_ScopeAdjust_Vertical[] = { -4, 30 };
ACE_ScopeAdjust_Horizontal[] = { -6, 6 };
class hgun_P07_F;
class rhsusf_weap_glock17g4: hgun_P07_F {
ACE_barrelTwist = 248.92;
ACE_barrelLength = 114.046;
};
class rhsusf_weap_m9: rhsusf_weap_glock17g4 {
ACE_barrelTwist = 248.92;
ACE_barrelLength = 124.46;
};
// RHS sniper scopes
class ItemCore;
class InventoryOpticsItem_Base_F;
class rhsusf_acc_sniper_base: ItemCore {
ACE_ScopeAdjust_Vertical[] = {-4, 30};
ACE_ScopeAdjust_Horizontal[] = {-6, 6};
ACE_ScopeAdjust_VerticalIncrement = 0.1;
ACE_ScopeAdjust_HorizontalIncrement = 0.1;
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class pso1_scope {
discreteDistance[] = {100};
discreteDistanceInitIndex = 0;
};
};
};
};
class rhsusf_acc_LEUPOLDMK4: rhsusf_acc_sniper_base {};
class rhsusf_acc_LEUPOLDMK4_2: rhsusf_acc_sniper_base {
ACE_ScopeAdjust_Vertical[] = { -4, 30 };
ACE_ScopeAdjust_Horizontal[] = { -6, 6 };
ACE_ScopeAdjust_VerticalIncrement = 0.1;
ACE_ScopeAdjust_HorizontalIncrement = 0.1;
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class pso1_scope {
discreteDistance[] = {100};
discreteDistanceInitIndex = 0;
};
};
};
};
class rhs_weap_fgm148 : launch_O_Titan_F {
class rhsusf_acc_LEUPOLDMK4_2_d : rhsusf_acc_LEUPOLDMK4_2 {};
class rhsusf_acc_premier: rhsusf_acc_LEUPOLDMK4_2 {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class pso1_scope {
discreteDistance[] = {100};
discreteDistanceInitIndex = 0;
};
};
};
};
class rhsusf_acc_premier_low : rhsusf_acc_premier {};
class rhsusf_acc_premier_anpvs27: rhsusf_acc_premier {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class pso1_nvg {
discreteDistance[] = {100};
discreteDistanceInitIndex = 0;
};
};
};
};
// RHS lauchers
class rhs_weap_fgm148: launch_O_Titan_F {
ace_javelin_enabled = 1;
weaponInfoType = "ACE_RscOptics_javelin";
modelOptics = "\z\ace\addons\javelin\data\reticle_titan.p3d";
canLock = 0;
lockingTargetSound[] = {"",0,1};
lockedTargetSound[] = {"",0,1};
@ -212,13 +277,11 @@ class CfgWeapons
class H_PilotHelmetHeli_B;
class H_CrewHelmetHeli_B;
class rhsusf_hgu56p: H_PilotHelmetHeli_B
{
class rhsusf_hgu56p: H_PilotHelmetHeli_B {
ace_hearing_protection = 0.85;
ace_hearing_lowerVolume = 0.75;
};
class rhsusf_hgu56p_mask: H_CrewHelmetHeli_B
{
class rhsusf_hgu56p_mask: H_CrewHelmetHeli_B {
ace_hearing_protection = 0.85;
ace_hearing_lowerVolume = 0.75;
};