From afb2bb45fe822a17dd9d735829cba03e071fc912 Mon Sep 17 00:00:00 2001 From: ulteq Date: Sun, 7 Jun 2015 10:11:50 +0200 Subject: [PATCH] Added R3F compat pbo --- optionals/compat_r3f/$PBOPREFIX$ | 1 + optionals/compat_r3f/CfgAmmo.hpp | 100 ++++++++++++ optionals/compat_r3f/CfgWeapons.hpp | 190 ++++++++++++++++++++++ optionals/compat_r3f/config.cpp | 15 ++ optionals/compat_r3f/script_component.hpp | 5 + 5 files changed, 311 insertions(+) create mode 100644 optionals/compat_r3f/$PBOPREFIX$ create mode 100644 optionals/compat_r3f/CfgAmmo.hpp create mode 100644 optionals/compat_r3f/CfgWeapons.hpp create mode 100644 optionals/compat_r3f/config.cpp create mode 100644 optionals/compat_r3f/script_component.hpp diff --git a/optionals/compat_r3f/$PBOPREFIX$ b/optionals/compat_r3f/$PBOPREFIX$ new file mode 100644 index 0000000000..405620f365 --- /dev/null +++ b/optionals/compat_r3f/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\compat_r3f \ No newline at end of file diff --git a/optionals/compat_r3f/CfgAmmo.hpp b/optionals/compat_r3f/CfgAmmo.hpp new file mode 100644 index 0000000000..27865a0430 --- /dev/null +++ b/optionals/compat_r3f/CfgAmmo.hpp @@ -0,0 +1,100 @@ +class CfgAmmo { + class Default; + class BulletBase; + class R3F_9x19_Ball: 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 R3F_556x45_Ball: BulletBase { + 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 R3F_762x51_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}; + }; + class R3F_127x99_Ball: BulletBase { + ACE_caliber=12.954; + ACE_bulletLength=58.674; + 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_ballisticCoefficients[]={0.670}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={900}; + ACE_barrelLengths[]={736.6}; + }; + class R3F_127x99_PEI: R3F_127x99_Ball { + ACE_caliber=12.954; + ACE_bulletLength=58.674; + 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_ballisticCoefficients[]={0.670}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={900}; + ACE_barrelLengths[]={736.6}; + }; + class R3F_127x99_Ball2: BulletBase { + ACE_caliber=12.954; + ACE_bulletLength=58.674; + 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_ballisticCoefficients[]={0.670}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={900}; + ACE_barrelLengths[]={736.6}; + }; + class R3F_127x99_PEI2: R3F_127x99_Ball2 { + ACE_caliber=12.954; + ACE_bulletLength=58.674; + 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_ballisticCoefficients[]={0.670}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={900}; + ACE_barrelLengths[]={736.6}; + }; + class R3F_127x99_Ball3: BulletBase { + ACE_caliber=12.954; + ACE_bulletLength=58.674; + 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_ballisticCoefficients[]={0.670}; + ACE_velocityBoundaries[]={}; + ACE_standardAtmosphere="ASM"; + ACE_dragModel=1; + ACE_muzzleVelocities[]={900}; + ACE_barrelLengths[]={736.6}; + }; +}; \ No newline at end of file diff --git a/optionals/compat_r3f/CfgWeapons.hpp b/optionals/compat_r3f/CfgWeapons.hpp new file mode 100644 index 0000000000..eae4eeb215 --- /dev/null +++ b/optionals/compat_r3f/CfgWeapons.hpp @@ -0,0 +1,190 @@ +class CfgWeapons { + class Pistol_Base_F; + class Rifle_Base_F; + class R3F_Famas_F1: Rifle_Base_F { + ACE_barrelTwist=304.8; + ACE_barrelLength=488; + }; + class R3F_Famas_surb: R3F_Famas_F1 { + ACE_barrelTwist=304.8; + ACE_barrelLength=403.86; + }; + class R3F_FRF2: Rifle_Base_F { + ACE_barrelTwist=304.8; + ACE_barrelLength=650; + }; + class R3F_PGM_Hecate_II: Rifle_Base_F { + ACE_barrelTwist=381.0; + ACE_barrelLength=700; + }; + class R3F_M107: Rifle_Base_F { + ACE_barrelTwist=381.0; + ACE_barrelLength=736.6; + }; + class R3F_TAC50: Rifle_Base_F + { + ACE_barrelTwist=381.0; + ACE_barrelLength=736.6; + }; + class R3F_Minimi: Rifle_Base_F { + ACE_barrelTwist=177.8; + ACE_barrelLength=347.98; + }; + class R3F_Minimi_HG: R3F_Minimi { + }; + class R3F_Minimi_762: R3F_Minimi { + ACE_barrelTwist=304.8; + ACE_barrelLength=502.92; + }; + class R3F_Minimi_762_HG: R3F_Minimi_762 { + }; + class R3F_HK417M: Rifle_Base_F { + ACE_barrelTwist=279.4; + ACE_barrelLength=406; + }; + class R3F_HK417S_HG: R3F_HK417M + { + ACE_barrelTwist=279.4; + ACE_barrelLength=305; + }; + class R3F_HK417L: R3F_HK417M { + ACE_barrelTwist=279.4; + ACE_barrelLength=508; + }; + class R3F_HK416M: Rifle_Base_F { + ACE_barrelTwist=177.8; + ACE_barrelLength=368.3; + }; + class R3F_MP5SD: Rifle_Base_F { + ACE_barrelTwist=254.0; + ACE_barrelLength=144.78; + }; + class R3F_MP5A5: R3F_MP5SD { + ACE_barrelTwist=254.0; + ACE_barrelLength=226.06; + }; + class R3F_M4S90: Rifle_Base_F { + ACE_twistDirection=0; + ACE_barrelTwist=0; + ACE_barrelLength=144.78; + }; + class R3F_PAMAS: Pistol_Base_F { + ACE_barrelTwist=248.92; + ACE_barrelLength=124.46; + }; + + class ItemCore; + class InventoryOpticsItem_Base_F; + class R3F_J4: ItemCore { + ACE_ScopeAdjust_Vertical[] = { -8, 8 }; + ACE_ScopeAdjust_Horizontal[] = { -8, 8 }; + ACE_ScopeAdjust_VerticalIncrement = 0.2; + ACE_ScopeAdjust_HorizontalIncrement = 0.2; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class J4 { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_J8: ItemCore { + ACE_ScopeAdjust_Vertical[] = { -10, 10 }; + ACE_ScopeAdjust_Horizontal[] = { -10, 10 }; + ACE_ScopeAdjust_VerticalIncrement = 0.1; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class J8 { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_J8_MILDOT: R3F_J8 { + ACE_ScopeAdjust_Vertical[] = { -10, 10 }; + ACE_ScopeAdjust_Horizontal[] = { -10, 10 }; + ACE_ScopeAdjust_VerticalIncrement = 0.1; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class J8_MILDOT { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_J10: ItemCore { + ACE_ScopeAdjust_Vertical[] = { -10, 10 }; + ACE_ScopeAdjust_Horizontal[] = { -10, 10 }; + ACE_ScopeAdjust_VerticalIncrement = 0.1; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class J10 { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_J10_MILDOT: R3F_J10 { + ACE_ScopeAdjust_Vertical[] = { -10, 10 }; + ACE_ScopeAdjust_Horizontal[] = { -10, 10 }; + ACE_ScopeAdjust_VerticalIncrement = 0.1; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class J10_MILDOT { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_ZEISS: ItemCore { + ACE_ScopeAdjust_Vertical[] = { 0, 23 }; + ACE_ScopeAdjust_Horizontal[] = { -7, 7 }; + ACE_ScopeAdjust_VerticalIncrement = 0.1; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class ZEISS_MILDOT { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_NF: ItemCore { + ACE_ScopeAdjust_Vertical[] = { -0.9, 34 }; + ACE_ScopeAdjust_Horizontal[] = { -11, 11 }; + ACE_ScopeAdjust_VerticalIncrement = 0.2; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class NF_MILDOT { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; + class R3F_NF42: ItemCore { + ACE_ScopeAdjust_Vertical[] = { -27.3, 27.3 }; + ACE_ScopeAdjust_Horizontal[] = { -27.3, 27.3}; + ACE_ScopeAdjust_VerticalIncrement = 0.1; + ACE_ScopeAdjust_HorizontalIncrement = 0.1; + class ItemInfo : InventoryOpticsItem_Base_F { + class OpticsModes { + class NF42_MILDOT { + discreteDistance[] = { 100 }; + discreteDistanceInitIndex = 0; + }; + }; + }; + }; +}; diff --git a/optionals/compat_r3f/config.cpp b/optionals/compat_r3f/config.cpp new file mode 100644 index 0000000000..d5dbc8e68c --- /dev/null +++ b/optionals/compat_r3f/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"R3F_Armes", "R3F_Acc"}; + author[]={"Ruthberg"}; + VERSION_CONFIG; + }; +}; + +#include "CfgAmmo.hpp" +#include "CfgWeapons.hpp" diff --git a/optionals/compat_r3f/script_component.hpp b/optionals/compat_r3f/script_component.hpp new file mode 100644 index 0000000000..86bb669119 --- /dev/null +++ b/optionals/compat_r3f/script_component.hpp @@ -0,0 +1,5 @@ +#define COMPONENT BWA3_Weapons_comp + +#include "\z\ace\addons\main\script_mod.hpp" + +#include "\z\ace\addons\main\script_macros.hpp"