AB : update R3F compat (#5541)

* Create CfgMagazines.hpp

* Update CfgAmmo.hpp

* Update CfgWeapons.hpp

* Update CfgWeapons.hpp

* Update CfgMagazines.hpp

* Update CfgMagazines.hpp

* Update config.cpp

* Update CfgWeapons.hpp

* Update CfgAmmo.hpp

* Update CfgAmmo.hpp

* Update CfgWeapons.hpp

* Update CfgMagazines.hpp

* Update CfgAmmo.hpp

* Update CfgMagazines.hpp

* spaces

* Update CfgWeapons.hpp

* typo
This commit is contained in:
Laid3acK 2017-09-22 17:33:39 +02:00 committed by jonpas
parent eb6e8c0b56
commit 25119d406f
5 changed files with 253 additions and 33 deletions

View File

@ -1,7 +1,9 @@
class CfgAmmo { class CfgAmmo {
class Default; class Default;
class BulletBase; class BulletBase;
class R3F_9x19_Ball: BulletBase { // ACE_9x19_Ball class R3F_9x19_Ball: BulletBase { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L360
typicalSpeed = 350; // R3F config
airFriction = -0.0019835001; // ACE3 value, default -0.001413
ACE_caliber = 9.017; ACE_caliber = 9.017;
ACE_bulletLength = 15.494; ACE_bulletLength = 15.494;
ACE_bulletMass = 8.0352; ACE_bulletMass = 8.0352;
@ -13,88 +15,119 @@ class CfgAmmo {
ACE_muzzleVelocities[] = {340, 370, 400}; ACE_muzzleVelocities[] = {340, 370, 400};
ACE_barrelLengths[] = {101.6, 127.0, 228.6}; ACE_barrelLengths[] = {101.6, 127.0, 228.6};
}; };
class R3F_556x45_Ball: BulletBase { // B_556x45_Ball, AtragMx GunList: 5.56x45mm M855 class R3F_556x45_Ball: BulletBase { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L9
typicalSpeed = 930; // R3F config
airFriction = -0.00126466; // ACE3 value, default -0.001625
ACE_caliber = 5.69; ACE_caliber = 5.69;
ACE_bulletLength = 23.012; ACE_bulletLength = 23.012;
ACE_bulletMass = 4.0176; 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_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_ballisticCoefficients[] = {0.302}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM"; ACE_standardAtmosphere = "ASM";
ACE_dragModel = 7; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {723, 764, 796, 825, 843, 866, 878, 892, 906, 915, 922, 900}; 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}; 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 R3F_762x51_Ball: BulletBase { // B_762x51_Ball, AtragMx GunList: 7.62x51mm M80 class R3F_762x51_Ball: BulletBase { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L152
typicalSpeed = 820; // R3F config
airFriction = -0.00100957; // ACE3 value, default -0.001625
ACE_caliber = 7.823; ACE_caliber = 7.823;
ACE_bulletLength = 28.956; ACE_bulletLength = 28.956;
ACE_bulletMass = 9.4608; 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_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_ballisticCoefficients[] = {0.398}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO"; ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 7; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {700, 800, 820, 833, 845}; ACE_muzzleVelocities[] = {700, 800, 820, 833, 845};
ACE_barrelLengths[] = {254.0, 406.4, 508.0, 609.6, 660.4}; ACE_barrelLengths[] = {254.0, 406.4, 508.0, 609.6, 660.4};
}; };
class R3F_127x99_Ball: BulletBase { // B_127x99_Ball, AtragMx GunList: 12.7x99mm class R3F_762x51_Ball2: R3F_762x51_Ball { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L152
typicalSpeed = 850; // R3F config
airFriction = -0.00100957; // ACE3 value, default -0.001625
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.398}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ICAO";
ACE_dragModel = 1;
ACE_muzzleVelocities[] = {850};
ACE_barrelLengths[] = {650};
};
class R3F_762x51_Minimi_Ball: R3F_762x51_Ball { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L152
airFriction = -0.00100957; // ACE3 value, default -0.002000
};
class R3F_127x99_Ball: BulletBase { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L494
typicalSpeed = 780; // R3F config
airFriction = -0.00057503; // ACE3 value, default -0.00086
ACE_caliber = 12.954; ACE_caliber = 12.954;
ACE_bulletLength = 58.674; ACE_bulletLength = 58.674;
ACE_bulletMass = 41.9256; ACE_bulletMass = 41.9256;
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_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_ballisticCoefficients[] = {0.670}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM"; ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900}; ACE_muzzleVelocities[] = {780};
ACE_barrelLengths[] = {700}; ACE_barrelLengths[] = {700};
}; };
class R3F_127x99_PEI: R3F_127x99_Ball { // B_127x99_Ball, AtragMx GunList: 12.7x99mm class R3F_127x99_PEI: R3F_127x99_Ball { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L494
typicalSpeed = 780; // R3F config
airFriction = -0.00057503; // ACE3 value, default -0.00086
ACE_caliber = 12.954; ACE_caliber = 12.954;
ACE_bulletLength = 58.674; ACE_bulletLength = 58.674;
ACE_bulletMass = 41.9256; ACE_bulletMass = 41.9256;
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_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_ballisticCoefficients[] = {0.670}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM"; ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900}; ACE_muzzleVelocities[] = {780};
ACE_barrelLengths[] = {700}; ACE_barrelLengths[] = {700};
}; };
class R3F_127x99_Ball2: BulletBase { // B_127x99_Ball, AtragMx GunList: 12.7x99mm class R3F_127x99_Ball2: BulletBase { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L494
typicalSpeed = 850; // R3F config
airFriction = -0.00057503; // ACE3 value, default -0.00086
ACE_caliber = 12.954; ACE_caliber = 12.954;
ACE_bulletLength = 58.674; ACE_bulletLength = 58.674;
ACE_bulletMass = 41.9256; ACE_bulletMass = 41.9256;
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_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_ballisticCoefficients[] = {0.670}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM"; ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900}; ACE_muzzleVelocities[] = {850};
ACE_barrelLengths[] = {736.6}; ACE_barrelLengths[] = {736.6};
}; };
class R3F_127x99_PEI2: R3F_127x99_Ball2 { // B_127x99_Ball, AtragMx GunList: 12.7x99mm class R3F_127x99_PEI2: R3F_127x99_Ball2 { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L494
typicalSpeed = 850; // R3F config
airFriction = -0.00057503; // ACE3 value, default -0.00086
ACE_caliber = 12.954; ACE_caliber = 12.954;
ACE_bulletLength = 58.674; ACE_bulletLength = 58.674;
ACE_bulletMass = 41.9256; ACE_bulletMass = 41.9256;
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_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_ballisticCoefficients[] = {0.670}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM"; ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900}; ACE_muzzleVelocities[] = {850};
ACE_barrelLengths[] = {736.6}; ACE_barrelLengths[] = {736.6};
}; };
class R3F_127x99_Ball3: BulletBase { // B_127x99_Ball, AtragMx GunList: 12.7x99mm class R3F_127x99_Ball3: BulletBase { // https://github.com/acemod/ACE3/blob/master/addons/ballistics/CfgAmmo.hpp#L494
typicalSpeed = 820; // R3F config
airFriction = -0.00057503; // ACE3 value, default -0.00086
ACE_caliber = 12.954; ACE_caliber = 12.954;
ACE_bulletLength = 58.674; ACE_bulletLength = 58.674;
ACE_bulletMass = 41.9256; ACE_bulletMass = 41.9256;
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_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_ballisticCoefficients[] = {0.670}; // AtragMx G1 BC
ACE_velocityBoundaries[] = {}; ACE_velocityBoundaries[] = {};
ACE_standardAtmosphere = "ASM"; ACE_standardAtmosphere = "ASM";
ACE_dragModel = 1; ACE_dragModel = 1;
ACE_muzzleVelocities[] = {900}; ACE_muzzleVelocities[] = {820};
ACE_barrelLengths[] = {736.6}; ACE_barrelLengths[] = {736.6};
}; };
}; };

View File

@ -0,0 +1,59 @@
class CfgMagazines {
class CA_magazine;
class R3F_securite_mag: CA_magazine {
scope = 0; // default 2
};
class R3F_15Rnd_9x19_PAMAS: CA_magazine {
initSpeed = 350; // R3F config
};
class R3F_15Rnd_9x19_HKUSP: CA_magazine {
initSpeed = 350; // R3F config
};
class R3F_30Rnd_9x19_MP5: CA_magazine {
initSpeed = 400; // R3F config
};
class R3F_25Rnd_556x45_FAMAS: CA_magazine { // AtragMx GunList: 5.56x45mm M855
initSpeed = 960; // R3F config
};
class R3F_25Rnd_556x45_TRACER_FAMAS: R3F_25Rnd_556x45_FAMAS {}; // AtragMx GunList: 5.56x45mm M855
class R3F_30Rnd_556x45_FAMAS: CA_magazine { // AtragMx GunList: 5.56x45mm M855
initSpeed = 925; // R3F config
};
class R3F_30Rnd_556x45_TRACER_FAMAS: R3F_30Rnd_556x45_FAMAS {}; // AtragMx GunList: 5.56x45mm M855
class R3F_30Rnd_556x45_HK416: CA_magazine { // AtragMx GunList: 5.56x45mm M855
initSpeed = 850; // R3F config
};
class R3F_30Rnd_556x45_TRACER_HK416: R3F_30Rnd_556x45_HK416 {}; // AtragMx GunList: 5.56x45mm M855
class R3F_30Rnd_556x45_SIG551: CA_magazine { // AtragMx GunList: 5.56x45mm M855
initSpeed = 850; // R3F config
};
class R3F_30Rnd_556x45_TRACER_SIG551: R3F_30Rnd_556x45_SIG551 {}; // AtragMx GunList: 5.56x45mm M855
class R3F_10Rnd_762x51_FRF2: CA_magazine { // AtragMx GunList: 5.56x45mm M855
initSpeed = 850; // R3F config
};
class R3F_200Rnd_556x45_MINIMI: CA_magazine { // AtragMx GunList: 5.56x45mm M855
initSpeed = 915; // R3F config
};
class R3F_100Rnd_762x51_MINIMI: CA_magazine { // AtragMx GunList: 7.62x51mm M80
initSpeed = 820; // R3F config
};
class R3F_20Rnd_762x51_HK417: CA_magazine { // AtragMx GunList: 7.62x51mm M80
initSpeed = 820; // R3F config
};
class R3F_20Rnd_762x51_TRACER_HK417: R3F_20Rnd_762x51_HK417 {}; // AtragMx GunList: 7.62x51mm M80
class R3F_7Rnd_127x99_PGM: CA_magazine { // AtragMx GunList: 12.7x99mm
initSpeed = 780; // R3F config
};
class R3F_7Rnd_127x99_PEI_PGM: R3F_7Rnd_127x99_PGM { // AtragMx GunList: 12.7x99mm
initSpeed = 780; // R3F config
};
class R3F_10Rnd_127x99_M107: CA_magazine { // AtragMx GunList: 12.7x99mm
initSpeed = 850; // R3F config
};
class R3F_10Rnd_127x99_PEI_M107: R3F_10Rnd_127x99_M107 { // AtragMx GunList: 12.7x99mm
initSpeed = 850; // R3F config
};
class R3F_5Rnd_127x99_TAC50: CA_magazine { // AtragMx GunList: 12.7x99mm
initSpeed = 820; // R3F config
};
};

View File

@ -5,75 +5,94 @@ class CfgWeapons {
class Rifle_Base_F; class Rifle_Base_F;
class R3F_Famas_F1: Rifle_Base_F { class R3F_Famas_F1: Rifle_Base_F {
ACE_RailHeightAboveBore = 10.6; ACE_RailHeightAboveBore = 10.6;
ACE_barrelTwist = 304.8; // 12" ACE_barrelTwist = 304.8; // 1:12"
ACE_barrelLength = 488.0; ACE_barrelLength = 488.0;
muzzles[] = {"this"};
};
class R3F_Famas_F1_M203: R3F_Famas_F1 {
muzzles[] = {"this","Lance_Grenades"};
}; };
class R3F_Famas_surb: R3F_Famas_F1 { class R3F_Famas_surb: R3F_Famas_F1 {
ACE_RailHeightAboveBore = 5.4; ACE_RailHeightAboveBore = 5.4;
ACE_barrelTwist = 228.6; // 9" ACE_barrelTwist = 228.6; // 1:9"
ACE_barrelLength = 450.0; // Beretta barrel ACE_barrelLength = 450.0; // Beretta barrel
}; };
class R3F_Famas_surb_M203: R3F_Famas_surb {
muzzles[] = {"this","Lance_Grenades"};
};
class R3F_Famas_G2: R3F_Famas_F1 { class R3F_Famas_G2: R3F_Famas_F1 {
ACE_RailHeightAboveBore = 10.6; ACE_RailHeightAboveBore = 10.6;
ACE_barrelTwist = 228.6; // 9" ACE_barrelTwist = 228.6; // 1:9"
ACE_barrelLength = 488.0; ACE_barrelLength = 488.0;
}; };
class R3F_Famas_G2_M203: R3F_Famas_G2 {
muzzles[] = {"this","Lance_Grenades"};
};
class R3F_Famas_felin: R3F_Famas_G2 { class R3F_Famas_felin: R3F_Famas_G2 {
ACE_RailHeightAboveBore = 5.4; ACE_RailHeightAboveBore = 5.4;
ACE_barrelTwist = 177.8; // 7" ACE_barrelTwist = 177.8; // 1:7"
ACE_barrelLength = 450.0; // Beretta barrel ACE_barrelLength = 450.0; // Beretta barrel
}; };
class R3F_FRF2: Rifle_Base_F { class R3F_FRF2: Rifle_Base_F {
ACE_RailHeightAboveBore = 2.2; ACE_RailHeightAboveBore = 2.2;
ACE_barrelTwist = 304.8; ACE_barrelTwist = 294.6;
ACE_barrelLength = 650.0; ACE_barrelLength = 650.0;
class Single: Mode_SemiAuto { class Single: Mode_SemiAuto {
dispersion = 0.00029; // 1 MOA dispersion = 0.00029; // 1 MOA, default 9.9999997e-005
}; };
muzzles[] = {"this"};
}; };
class R3F_PGM_Hecate_II: Rifle_Base_F { class R3F_PGM_Hecate_II: Rifle_Base_F {
ACE_RailHeightAboveBore = 2.0; ACE_RailHeightAboveBore = 2.0;
ACE_barrelTwist = 381.0; ACE_barrelTwist = 381.0;
ACE_barrelLength = 700.0; ACE_barrelLength = 700.0;
class Single: Mode_SemiAuto { class Single: Mode_SemiAuto {
dispersion = 0.00029; dispersion = 0.00029; // 1 MOA, default 0.00018
}; };
muzzles[] = {"this"};
}; };
class R3F_M107: Rifle_Base_F { class R3F_M107: Rifle_Base_F {
ACE_RailHeightAboveBore = 3.6; ACE_RailHeightAboveBore = 3.6;
ACE_barrelTwist = 381.0; ACE_barrelTwist = 381.0;
ACE_barrelLength = 736.6; ACE_barrelLength = 736.6;
class Single: Mode_SemiAuto { class Single: Mode_SemiAuto {
dispersion = 0.00029; dispersion = 0.00029; // 1 MOA, default 0.00030
}; };
muzzles[] = {"this"};
}; };
class R3F_TAC50: Rifle_Base_F { class R3F_TAC50: Rifle_Base_F {
ACE_RailHeightAboveBore = 3.2; ACE_RailHeightAboveBore = 3.2;
ACE_barrelTwist = 381.0; ACE_barrelTwist = 381.0;
ACE_barrelLength = 736.6; ACE_barrelLength = 736.6;
class Single: Mode_SemiAuto { class Single: Mode_SemiAuto {
dispersion = 0.00029; dispersion = 0.00029; // 1 MOA, default 0.00015
}; };
muzzles[] = {"this"};
}; };
class R3F_Minimi: Rifle_Base_F { class R3F_Minimi: Rifle_Base_F {
ACE_RailHeightAboveBore = 4.0; ACE_RailHeightAboveBore = 4.0;
ACE_barrelTwist = 177.8; ACE_barrelTwist = 177.8;
ACE_barrelLength = 347.98; ACE_barrelLength = 347.98;
muzzles[] = {"this"};
initSpeed = 915; // R3F config
}; };
class R3F_Minimi_762: R3F_Minimi { class R3F_Minimi_762: R3F_Minimi {
ACE_RailHeightAboveBore = 4.0; ACE_RailHeightAboveBore = 4.0;
ACE_barrelTwist = 304.8; ACE_barrelTwist = 304.8;
ACE_barrelLength = 502.92; ACE_barrelLength = 502.92;
initSpeed = 820; // R3F config
}; };
class R3F_SIG551: Rifle_Base_F { class R3F_SIG551: Rifle_Base_F {
ACE_RailHeightAboveBore = 4.2; ACE_RailHeightAboveBore = 4.2;
ACE_barrelTwist = 177.8; ACE_barrelTwist = 177.8;
ACE_barrelLength = 363.0; ACE_barrelLength = 363.0;
muzzles[] = {"this"};
}; };
class R3F_HK417M: Rifle_Base_F { class R3F_HK417M: Rifle_Base_F {
ACE_RailHeightAboveBore = 3.4; ACE_RailHeightAboveBore = 3.4;
ACE_barrelTwist = 279.4; ACE_barrelTwist = 279.4;
ACE_barrelLength = 406.0; ACE_barrelLength = 406.0;
muzzles[] = {"this"};
}; };
class R3F_HK417S_HG: R3F_HK417M { class R3F_HK417S_HG: R3F_HK417M {
ACE_RailHeightAboveBore = 3.4; ACE_RailHeightAboveBore = 3.4;
@ -85,13 +104,17 @@ class CfgWeapons {
ACE_barrelTwist = 279.4; ACE_barrelTwist = 279.4;
ACE_barrelLength = 508.0; ACE_barrelLength = 508.0;
class Single: Mode_SemiAuto { class Single: Mode_SemiAuto {
dispersion = 0.00029; dispersion = 0.00029; // 1 MOA, default 0.00020
}; };
}; };
class R3F_HK416M: Rifle_Base_F { class R3F_HK416M: Rifle_Base_F {
ACE_RailHeightAboveBore = 3.4; ACE_RailHeightAboveBore = 3.4;
ACE_barrelTwist = 177.8; ACE_barrelTwist = 177.8;
ACE_barrelLength = 368.3; ACE_barrelLength = 368.3;
muzzles[] = {"this"};
};
class R3F_HK416M_M203: R3F_HK416M {
muzzles[] = {"this","Lance_Grenades"};
}; };
class R3F_HK416M_HG: R3F_HK416M {}; class R3F_HK416M_HG: R3F_HK416M {};
class R3F_HK416S_HG: R3F_HK416M_HG { class R3F_HK416S_HG: R3F_HK416M_HG {
@ -103,11 +126,13 @@ class CfgWeapons {
ACE_RailHeightAboveBore = 4.5; ACE_RailHeightAboveBore = 4.5;
ACE_barrelTwist = 254.0; ACE_barrelTwist = 254.0;
ACE_barrelLength = 144.78; ACE_barrelLength = 144.78;
muzzles[] = {"this"};
}; };
class R3F_MP5A5: R3F_MP5SD { class R3F_MP5A5: R3F_MP5SD {
ACE_RailHeightAboveBore = 4.5; ACE_RailHeightAboveBore = 4.5;
ACE_barrelTwist = 254.0; ACE_barrelTwist = 254.0;
ACE_barrelLength = 226.06; ACE_barrelLength = 226.06;
muzzles[] = {"this"};
}; };
class R3F_M4S90: Rifle_Base_F { class R3F_M4S90: Rifle_Base_F {
ACE_RailHeightAboveBore = 2.2; ACE_RailHeightAboveBore = 2.2;
@ -118,10 +143,14 @@ class CfgWeapons {
class R3F_PAMAS: Pistol_Base_F { class R3F_PAMAS: Pistol_Base_F {
ACE_barrelTwist = 250.0; ACE_barrelTwist = 250.0;
ACE_barrelLength = 125.0; ACE_barrelLength = 125.0;
muzzles[] = {"this"};
initSpeed = -1.0; // default 410
}; };
class R3F_HKUSP: Pistol_Base_F { class R3F_HKUSP: Pistol_Base_F {
ACE_barrelTwist = 250.0; ACE_barrelTwist = 250.0;
ACE_barrelLength = 121.0; ACE_barrelLength = 121.0;
muzzles[] = {"this"};
initSpeed = -1.0; // default 410
}; };
class ItemCore; class ItemCore;
class InventoryOpticsItem_Base_F; class InventoryOpticsItem_Base_F;
@ -183,6 +212,7 @@ class CfgWeapons {
}; };
}; };
class R3F_J10: ItemCore { class R3F_J10: ItemCore {
ACE_ScopeZeroRange = 1400; // Inaccurate reticle, designed to work with the vanilla ballistic.
ACE_ScopeHeightAboveRail = 4.4; ACE_ScopeHeightAboveRail = 4.4;
ACE_ScopeAdjust_Vertical[] = {-10, 10}; ACE_ScopeAdjust_Vertical[] = {-10, 10};
ACE_ScopeAdjust_Horizontal[] = {-10, 10}; ACE_ScopeAdjust_Horizontal[] = {-10, 10};
@ -260,4 +290,101 @@ class CfgWeapons {
class R3F_OB50: ItemCore { class R3F_OB50: ItemCore {
ACE_ScopeHeightAboveRail = 4.0; ACE_ScopeHeightAboveRail = 4.0;
}; };
class InventoryMuzzleItem_Base_F;
class R3F_SILENCIEUX_HK416: ItemCore {
class ItemInfo: InventoryMuzzleItem_Base_F {
class MagazineCoef {
initSpeed = 1.0;
};
class AmmoCoef {
hit = 1.0; // default "0.8"
visibleFire = 0.5;
audibleFire = 0.1; // default "0.3"
visibleFireTime = 0.5;
audibleFireTime = 0.5;
cost = 1.0;
typicalSpeed = 1.0;
airFriction = 1.0;
};
class MuzzleCoef {
dispersionCoef = "0.95f"; // default "0.8f"
artilleryDispersionCoef = "1.0f";
fireLightCoef = "0.5f"; // default "0.1f"
recoilCoef = "0.95f"; // default "1.0f"
recoilProneCoef = "0.95f"; // default "1.0f"
minRangeCoef = "1.0f";
minRangeProbabCoef = "1.0f";
midRangeCoef = "1.0f";
midRangeProbabCoef = "1.0f";
maxRangeCoef = "1.0f";
maxRangeProbabCoef = "1.0f";
};
};
};
class R3F_SILENCIEUX_HK417: ItemCore {
class ItemInfo: InventoryMuzzleItem_Base_F {
class MagazineCoef {
initSpeed = 1.0;
};
class AmmoCoef {
hit = 1.0;
visibleFire = 0.5;
audibleFire = 0.1;
visibleFireTime = 0.5;
audibleFireTime = 0.5;
cost = 1.0;
typicalSpeed = 1.0;
airFriction = 1.0;
};
class MuzzleCoef {
dispersionCoef = "0.95f";
artilleryDispersionCoef = "1.0f";
fireLightCoef = "0.5f";
recoilCoef = "0.95f";
recoilProneCoef = "0.95f";
minRangeCoef = "1.0f";
minRangeProbabCoef = "1.0f";
midRangeCoef = "1.0f";
midRangeProbabCoef = "1.0f";
maxRangeCoef = "1.0f";
maxRangeProbabCoef = "1.0f";
};
};
};
class R3F_SILENCIEUX_FRF2: ItemCore {
class ItemInfo: InventoryMuzzleItem_Base_F {
class MagazineCoef {
initSpeed = 1.0;
};
class AmmoCoef {
hit = 1.0;
visibleFire = 0.5;
audibleFire = 0.1;
visibleFireTime = 0.5;
audibleFireTime = 0.5;
cost = 1.0;
typicalSpeed = 1.0;
airFriction = 1.0;
};
class MuzzleCoef {
dispersionCoef = "0.95f";
artilleryDispersionCoef = "1.0f";
fireLightCoef = "0.5f";
recoilCoef = "0.95f";
recoilProneCoef = "0.95f";
minRangeCoef = "1.0f";
minRangeProbabCoef = "1.0f";
midRangeCoef = "1.0f";
midRangeProbabCoef = "1.0f";
maxRangeCoef = "1.0f";
maxRangeProbabCoef = "1.0f";
};
};
};
}; };

View File

@ -15,4 +15,5 @@ class CfgPatches {
}; };
#include "CfgAmmo.hpp" #include "CfgAmmo.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"

View File

@ -1,5 +1,5 @@
#define COMPONENT compat_r3f #define COMPONENT compat_r3f
#define COMPONENT_BEAUTIFIED R3F Compatibilty #define COMPONENT_BEAUTIFIED R3F Compatibility
#include "\z\ace\addons\main\script_mod.hpp" #include "\z\ace\addons\main\script_mod.hpp"