Created
July 30, 2016 15:46
-
-
Save jameslkingsley/cc6380fd06458c86312156aeb17803d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CfgPatches { | |
class RH_m4_cfg { | |
units[] = | |
{ | |
"RH_m4m16ammobox" | |
}; | |
weapons[] = | |
{ | |
"RH_m16a1", | |
"RH_m16a1gl", | |
"RH_m16a2", | |
"RH_m16a2gl", | |
}; | |
requiredVersion = 0.1; | |
requiredAddons[] = | |
{ | |
"A3_Data_F", | |
"A3_Weapons_F", | |
"RH_acc", | |
"asdg_jointrails" | |
}; | |
}; | |
}; | |
class cfgRecoils { | |
class Default; | |
class RH_recoil_default : Default { | |
muzzleOuter[] = {0.30000001, 1, 0.30000001, 0.2}; | |
muzzleInner[] = {0, 0, 0.1, 0.1}; | |
kickBack[] = {0.029999999, 0.059999999}; | |
permanent = 0.1; | |
temporary = 0.0099999998; | |
}; | |
class RH_recoil_M16 : RH_recoil_default { | |
muzzleOuter[] = {0.30000001, 0.80000001, 0.40000001, 0.30000001}; | |
kickBack[] = {0.02, 0.039999999}; | |
temporary = 0.0099999998; | |
}; | |
RH_M4_Recoil[] = {0, 0.0049999999, 0.0049999999, 0.0049999999, 0.0099999998, 0.011, 0.090000004, 0.0049999999, -0.00039999999, 0.13, 0, 0}; | |
RH_M4_RecoilProne[] = {0, 0.0049999999, 0.0049999999, 0.0049999999, 0.0099999998, 0.0089999996, 0.075000003, 0.0049999999, -0.00030000001, 0.13, 0, 0}; | |
RH_M4_Recoil_Auto[] = {0, 0.0070000002, 0.015, 0.0070000002, 0.0099999998, 0.022, 0.090000004, 0.02, 0.0099999998, 0.13, 0, 0}; | |
RH_M4_RecoilProneAuto[] = {0, 0.0049999999, 0.0049999999, 0.0049999999, 0.0099999998, 0.0089999996, 0.075000003, 0.0049999999, -0.00030000001, 0.13, 0, 0}; | |
RH_M4_Recoil_GLRecoil[] = {0, 0.0049999999, 0, 0.0099999998, 0.0049999999, 0, 0.02, 0.003, 0.0060000001, 0.12, 0, 0}; | |
RH_M203GLBase[] = {0, 0.029999999, 0.050000001, 0.13, 0.0099999998, -0.001, 0.25999999, 0, 0}; | |
}; | |
class CfgAmmo { | |
class Default; | |
class BulletCore; | |
class BulletBase; | |
class B_556x45_Ball; | |
class B_65x39_Caseless; | |
{ | |
hit = 5.3592143; | |
typicalSpeed = 423; | |
airFriction = -0.0023934371; | |
caliber = 0.53100002; | |
deflecting = 28; | |
cartridge = "FxCartridge_65_caseless"; | |
}; | |
class RH_556x45_B_M855A1 : B_556x45_Ball { | |
hit = 8.6063738; | |
typicalSpeed = 960.12; | |
airFriction = -0.0011336141; | |
caliber = 0.90100002; | |
deflecting = 21; | |
visibleFire = 3; | |
audibleFire = 6; | |
cartridge = "FxCartridge_65_caseless"; | |
model = "\A3\Weapons_f\Data\bullettracer\tracer_red"; | |
nvgOnly = 0; | |
}; | |
class RH_556x45_B_Mk318 : B_556x45_Ball { | |
hit = 10.073716; | |
typicalSpeed = 955.24323; | |
airFriction = -0.0011487255; | |
caliber = 0.73400003; | |
deflecting = 18; | |
visibleFire = 3; | |
audibleFire = 5.5; | |
cartridge = "FxCartridge_65_caseless"; | |
model = "\A3\Weapons_f\Data\bullettracer\tracer_red"; | |
nvgOnly = 0; | |
}; | |
class RH_556x45_B_Mk262 : B_556x45_Ball { | |
hit = 11.570251; | |
typicalSpeed = 868.67999; | |
airFriction = -0.0010867938; | |
caliber = 0.61500001; | |
deflecting = 16; | |
visibleFire = 2.5; | |
audibleFire = 5; | |
cartridge = "FxCartridge_65_caseless"; | |
model = "\A3\Weapons_f\Data\bullettracer\tracer_red"; | |
nvgOnly = 0; | |
}; | |
class RH_68x43_B_FMJ : B_65x39_Caseless { | |
hit = 9.8421144; | |
typicalSpeed = 806.19598; | |
airFriction = -0.0013388559; | |
caliber = 0.67500001; | |
deflecting = 23; | |
cartridge = "FxCartridge_65_caseless"; | |
model = "\A3\Weapons_f\Data\bullettracer\tracer_red"; | |
}; | |
class RH_68x43_B_Match : B_65x39_Caseless { | |
hit = 11.822756; | |
typicalSpeed = 715.06079; | |
airFriction = -0.00083907897; | |
caliber = 0.359; | |
deflecting = 18; | |
cartridge = "FxCartridge_65_caseless"; | |
model = "\A3\Weapons_f\Data\bullettracer\tracer_red"; | |
}; | |
}; | |
class CfgMagazines { | |
class Default; | |
class CA_Magazine; | |
class 20Rnd_762x51_Mag; | |
class 30Rnd_556x45_Stanag; | |
class 30Rnd_9x21_Mag; | |
class RH_30Rnd_556x45_Mk262 : 30Rnd_556x45_Stanag | |
{ | |
displayName = "5.56mm 30rnd STANAG Mag Mk262"; | |
displayNameShort = "Mk262"; | |
model = "\RH_m4\mags\mag_m16.p3d"; | |
ammo = "RH_556x45_B_Mk262"; | |
initSpeed = 930; | |
}; | |
class RH_20Rnd_556x45_M855A1 : 30Rnd_556x45_Stanag | |
{ | |
displayName = "5.56mm 20rnd STANAG Mag M855A1"; | |
displayNameShort = "M855A1 EPR"; | |
picture = "\A3\weapons_f\data\ui\m_20stanag_CA.paa"; | |
model = "\RH_m4\mags\mag_m16a1.p3d"; | |
ammo = "RH_556x45_B_M855A1"; | |
count = 20; | |
mass = 6; | |
initSpeed = 920; | |
}; | |
class RH_20Rnd_556x45_Mk318 : 30Rnd_556x45_Stanag | |
{ | |
displayName = "5.56mm 20rnd STANAG Mag Mk318"; | |
displayNameShort = "Mk318"; | |
picture = "\A3\weapons_f\data\ui\m_20stanag_CA.paa"; | |
model = "\RH_m4\mags\mag_m16a1.p3d"; | |
ammo = "RH_556x45_B_Mk318"; | |
count = 20; | |
mass = 6; | |
initSpeed = 920; | |
}; | |
class RH_20Rnd_556x45_Mk262 : 30Rnd_556x45_Stanag | |
{ | |
displayName = "5.56mm 20rnd STANAG Mag Mk262"; | |
displayNameShort = "Mk262"; | |
picture = "\A3\weapons_f\data\ui\m_20stanag_CA.paa"; | |
model = "\RH_m4\mags\mag_m16a1.p3d"; | |
ammo = "RH_556x45_B_Mk262"; | |
count = 20; | |
mass = 6; | |
initSpeed = 930; | |
}; | |
}; | |
class Mode_SemiAuto; | |
class Mode_Burst; | |
class Mode_FullAuto; | |
class SlotInfo; | |
class MuzzleSlot; | |
class CowsSlot; | |
class PointerSlot; | |
class UnderBarrelSlot; | |
class asdg_SlotInfo; | |
class asdg_FrontSideRail; | |
class asdg_OpticRail; | |
class asdg_OpticRail1913; | |
class asdg_OpticRail1913_short; | |
class asdg_MuzzleSlot_556; | |
class asdg_MuzzleSlot_762; | |
class asdg_MuzzleSlot_9MM; | |
class asdg_UnderSlot; | |
class CfgWeapons { | |
class Rifle; | |
class UGL_F; | |
class WeaponSlotsInfo; | |
class Rifle_Base_F : Rifle { | |
class WeaponSlotsInfo; | |
class GunParticles; | |
}; | |
class ItemCore; | |
class ItemInfo; | |
class InventoryItem_Base_F; | |
class InventoryMuzzleItem_Base_F; | |
class InventoryOpticsItem_Base_F; | |
class InventoryFlashLightItem_Base_F; | |
class Zasleh2; | |
class ItemInfo : InventoryMuzzleItem_Base_F { | |
mass = 4; | |
class MagazineCoef { | |
initSpeed = 1; | |
}; | |
class AmmoCoef { | |
hit = 1; | |
visibleFire = 0.5; | |
audibleFire = 0.30000001; | |
visibleFireTime = 0.5; | |
audibleFireTime = 0.5; | |
cost = 1; | |
typicalSpeed = 1; | |
airFriction = 1; | |
}; | |
muzzleEnd = "zaslehPoint"; | |
alternativeFire = "Zasleh2"; | |
class MuzzleCoef { | |
dispersionCoef = "1.0f"; | |
artilleryDispersionCoef = "1.0f"; | |
inertiaCoef = "0.9f"; | |
fireLightCoef = "0.1f"; | |
recoilCoef = "1.0f"; | |
recoilProneCoef = "1.0f"; | |
minRangeCoef = "1.0f"; | |
minRangeProbabCoef = "1.0f"; | |
midRangeCoef = "1.0f"; | |
midRangeProbabCoef = "1.0f"; | |
maxRangeCoef = "1.0f"; | |
maxRangeProbabCoef = "1.0f"; | |
}; | |
}; | |
inertia = 0.2; | |
}; | |
class RH_Delft : ItemCore { | |
scope = 2; | |
author = "RobertHammer"; | |
displayName = "Delft scope"; | |
picture = "\RH_M4\inv\ui\Delft_ui_ca.paa"; | |
model = "\RH_M4\RH_Delft.p3d"; | |
descriptionShort = "$STR_A3_cfgWeapons_optic_Valdada1"; | |
weaponInfoType = "RscWeaponZeroing"; | |
class ItemInfo : InventoryOpticsItem_Base_F { | |
opticType = 1; | |
mass = 10; | |
RMBhint = "Delft"; | |
optics = 1; | |
modelOptics = "\A3\Weapons_F\empty"; | |
class OpticsModes { | |
class Delftcqb { | |
opticsID = 1; | |
useModelOptics = 0; | |
opticsPPEffects[] = | |
{ | |
"" | |
}; | |
opticsFlare = 0; | |
opticsDisablePeripherialVision = 0; | |
opticsZoomMin = 0.25; | |
opticsZoomMax = 1.1; | |
opticsZoomInit = 0.5; | |
memoryPointCamera = "eye"; | |
visionMode[] = {}; | |
distanceZoomMin = 100; | |
distanceZoomMax = 100; | |
}; | |
class Delftscope { | |
opticsID = 2; | |
useModelOptics = 0; | |
opticsPPEffects[] = | |
{ | |
"OpticsCHAbera5", | |
"OpticsBlur5" | |
}; | |
opticsFlare = 0; | |
opticsDisablePeripherialVision = 0; | |
opticsZoomMin = 0.0691; | |
opticsZoomMax = 0.0691; | |
opticsZoomInit = 0.0691; | |
memoryPointCamera = "opticView"; | |
visionMode[] = {}; | |
distanceZoomMin = 300; | |
distanceZoomMax = 300; | |
}; | |
}; | |
}; | |
inertia = 0.1; | |
}; | |
class M203 : UGL_F { | |
displayName = "M203"; | |
descriptionShort = "$STR_A3_cfgweapons_3gl1"; | |
useModelOptics = 0; | |
useExternalOptic = 0; | |
recoil = "RH_M203GLBase"; | |
magazines[] = | |
{ | |
"1Rnd_HE_Grenade_shell", | |
"UGL_FlareWhite_F", | |
"UGL_FlareGreen_F", | |
"UGL_FlareRed_F", | |
"UGL_FlareYellow_F", | |
"UGL_FlareCIR_F", | |
"1Rnd_Smoke_Grenade_shell", | |
"1Rnd_SmokeRed_Grenade_shell", | |
"1Rnd_SmokeGreen_Grenade_shell", | |
"1Rnd_SmokeYellow_Grenade_shell", | |
"1Rnd_SmokePurple_Grenade_shell", | |
"1Rnd_SmokeBlue_Grenade_shell", | |
"1Rnd_SmokeOrange_Grenade_shell" | |
}; | |
sounds[] = | |
{ | |
"StandardSound" | |
}; | |
class BaseSoundModeType { | |
closure1[] = | |
{ | |
"A3\Sounds_F\arsenal\weapons\UGL\Closure_UGL", | |
1, | |
1, | |
10 | |
}; | |
soundClosure[] = | |
{ | |
"closure1", | |
1 | |
}; | |
}; | |
class StandardSound { | |
weaponSoundEffect = "DefaultRifle"; | |
begin1[] = | |
{ | |
"RH_m4\sound\m203", | |
1, | |
1, | |
200 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
1 | |
}; | |
}; | |
reloadMagazineSound[] = | |
{ | |
"RH_m4\sound\m203_reload", | |
1, | |
1, | |
10 | |
}; | |
cameraDir = "OP_look"; | |
discreteDistance[] = {50, 100, 150, 200, 250}; | |
discreteDistanceCameraPoint[] = | |
{ | |
"OP_eye", | |
"OP_eye2", | |
"OP_eye3", | |
"OP_eye4", | |
"OP_eye5" | |
}; | |
discreteDistanceInitIndex = 1; | |
}; | |
aiDispersionCoefY = 10; | |
aiDispersionCoefX = 8; | |
changeFiremodeSound[] = | |
{ | |
"\RH_m4\sound\m4_selector", | |
0.5, | |
1, | |
10 | |
}; | |
drySound[] = | |
{ | |
"\RH_m4\sound\dry", | |
0.80000001, | |
1, | |
15 | |
}; | |
reloadMagazineSound[] = | |
{ | |
"RH_m4\sound\m4_reload", | |
1, | |
1, | |
15 | |
}; | |
}; | |
class RH_M4_M203 : RH_m4 { | |
author = "RobertHammer"; | |
handAnim[] = | |
{ | |
"OFP2_ManSkeleton", | |
"\RH_m4\anim\RH_M4gl.rtm" | |
}; | |
model = "\RH_M4\RH_m4_m203.p3d"; | |
displayName = "M4 M203"; | |
picture = "\RH_m4\inv\m4_m203_x_ca.paa"; | |
inertia = 0.5; | |
muzzles[] = | |
{ | |
"this", | |
"M203" | |
}; | |
class WeaponSlotsInfo : WeaponSlotsInfo { | |
mass = 125; | |
}; | |
}; | |
class RH_M16a1 : RH_m4 { | |
author = "RobertHammer"; | |
model = "\RH_M4\RH_m16a1.p3d"; | |
displayName = "M16A1"; | |
picture = "\RH_m4\inv\m16a1_x_ca.paa"; | |
modes[] = | |
{ | |
"Single", | |
"FullAuto", | |
"single_medium_optics1", | |
"single_far_optics2" | |
}; | |
handAnim[] = | |
{ | |
"OFP2_ManSkeleton", | |
"\RH_m4\anim\RH_m16a1.rtm" | |
}; | |
inertia = 0.5; | |
recoil = "RH_recoil_M16"; | |
initSpeed = 0; | |
class WeaponSlotsInfo : WeaponSlotsInfo { | |
mass = 100; | |
class CowsSlot {}; | |
class MuzzleSlot {}; | |
class PointerSlot {}; | |
}; | |
class Single : Mode_SemiAuto { | |
sounds[] = | |
{ | |
"StandardSound", | |
"SilencedSound" | |
}; | |
class BaseSoundModeType { | |
weaponSoundEffect = "DefaultRifle"; | |
closure1[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_2", | |
0.56, | |
1, | |
10 | |
}; | |
closure2[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_3", | |
0.56, | |
1, | |
10 | |
}; | |
soundClosure[] = | |
{ | |
"closure1", | |
0.5, | |
"closure2", | |
0.5 | |
}; | |
}; | |
class StandardSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16a1_s1.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16a1_s2.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin3[] = | |
{ | |
"RH_m4\sound\m16a1_s3.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin4[] = | |
{ | |
"RH_m4\sound\m16a1_s4.wss", | |
1, | |
1, | |
1200 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.25, | |
"begin2", | |
0.25, | |
"begin3", | |
0.25, | |
"begin4", | |
0.25 | |
}; | |
}; | |
class SilencedSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16_sd1", | |
1, | |
1, | |
240 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16_sd2", | |
1, | |
1, | |
240 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.5, | |
"begin2", | |
0.5 | |
}; | |
}; | |
reloadTime = 0.079999998; | |
recoil = "RH_M4_Recoil"; | |
recoilProne = "RH_M4_RecoilProne"; | |
dispersion = 0.0020000001; | |
minRange = 2; | |
minRangeProbab = 0.5; | |
midRange = 225; | |
midRangeProbab = 0.69999999; | |
maxRange = 500; | |
maxRangeProbab = 0.2; | |
}; | |
class FullAuto : Mode_FullAuto { | |
sounds[] = | |
{ | |
"StandardSound", | |
"SilencedSound" | |
}; | |
class BaseSoundModeType { | |
weaponSoundEffect = "DefaultRifle"; | |
closure1[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_2", | |
0.56, | |
1, | |
10 | |
}; | |
closure2[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_3", | |
0.56, | |
1, | |
10 | |
}; | |
soundClosure[] = | |
{ | |
"closure1", | |
0.5, | |
"closure2", | |
0.5 | |
}; | |
}; | |
class StandardSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16a1_s1.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16a1_s2.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin3[] = | |
{ | |
"RH_m4\sound\m16a1_s3.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin4[] = | |
{ | |
"RH_m4\sound\m16a1_s4.wss", | |
1, | |
1, | |
1200 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.25, | |
"begin2", | |
0.25, | |
"begin3", | |
0.25, | |
"begin4", | |
0.25 | |
}; | |
}; | |
class SilencedSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16_sd1", | |
1, | |
1, | |
240 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16_sd2", | |
1, | |
1, | |
240 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.5, | |
"begin2", | |
0.5 | |
}; | |
}; | |
reloadTime = 0.079999998; | |
recoil = "RH_M4_Recoil_Auto"; | |
recoilProne = "RH_M4_RecoilProneAuto"; | |
dispersion = 0.0020000001; | |
minRange = 0; | |
minRangeProbab = 0.80000001; | |
midRange = 40; | |
midRangeProbab = 0.69999999; | |
maxRange = 80; | |
maxRangeProbab = 0.050000001; | |
aiRateOfFire = 1e-006; | |
}; | |
}; | |
class RH_M16A1gl : RH_M16a1 { | |
author = "RobertHammer"; | |
model = "\RH_M4\RH_m16a1gl.p3d"; | |
picture = "\RH_m4\inv\m16a1gl_x_ca.paa"; | |
displayName = "M16A1 M203"; | |
handAnim[] = | |
{ | |
"OFP2_ManSkeleton", | |
"\RH_m4\anim\RH_M4gl.rtm" | |
}; | |
inertia = 0.60000002; | |
muzzles[] = | |
{ | |
"this", | |
"M203" | |
}; | |
class WeaponSlotsInfo : WeaponSlotsInfo { | |
mass = 140; | |
}; | |
}; | |
class RH_M16A2 : RH_m4 { | |
author = "RobertHammer"; | |
model = "\RH_M4\RH_m16a2.p3d"; | |
displayName = "M16A2"; | |
picture = "\RH_m4\inv\m16a2_x_ca.paa"; | |
inertia = 0.5; | |
recoil = "RH_recoil_M16"; | |
initSpeed = 0; | |
class WeaponSlotsInfo : WeaponSlotsInfo { | |
mass = 100; | |
class CowsSlot {}; | |
class MuzzleSlot {}; | |
class PointerSlot {}; | |
}; | |
class Single : Mode_SemiAuto { | |
sounds[] = | |
{ | |
"StandardSound", | |
"SilencedSound" | |
}; | |
class BaseSoundModeType { | |
weaponSoundEffect = "DefaultRifle"; | |
closure1[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_2", | |
0.56, | |
1, | |
10 | |
}; | |
closure2[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_3", | |
0.56, | |
1, | |
10 | |
}; | |
soundClosure[] = | |
{ | |
"closure1", | |
0.5, | |
"closure2", | |
0.5 | |
}; | |
}; | |
class StandardSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16a1_s1.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16a1_s2.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin3[] = | |
{ | |
"RH_m4\sound\m16a1_s3.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin4[] = | |
{ | |
"RH_m4\sound\m16a1_s4.wss", | |
1, | |
1, | |
1200 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.25, | |
"begin2", | |
0.25, | |
"begin3", | |
0.25, | |
"begin4", | |
0.25 | |
}; | |
}; | |
class SilencedSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16_sd1", | |
1, | |
1, | |
240 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16_sd2", | |
1, | |
1, | |
240 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.5, | |
"begin2", | |
0.5 | |
}; | |
}; | |
reloadtime = 0.071000002; | |
recoil = "RH_M4_Recoil"; | |
recoilProne = "RH_M4_RecoilProne"; | |
dispersion = 0.0017500001; | |
minRange = 2; | |
minRangeProbab = 0.5; | |
midRange = 225; | |
midRangeProbab = 0.69999999; | |
maxRange = 500; | |
maxRangeProbab = 0.2; | |
}; | |
class Burst : Mode_Burst { | |
sounds[] = | |
{ | |
"StandardSound", | |
"SilencedSound" | |
}; | |
class BaseSoundModeType { | |
weaponSoundEffect = "DefaultRifle"; | |
closure1[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_2", | |
0.56, | |
1, | |
10 | |
}; | |
closure2[] = | |
{ | |
"A3\sounds_f\weapons\closure\closure_rifle_3", | |
0.56, | |
1, | |
10 | |
}; | |
soundClosure[] = | |
{ | |
"closure1", | |
0.5, | |
"closure2", | |
0.5 | |
}; | |
}; | |
class StandardSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16a1_s1.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16a1_s2.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin3[] = | |
{ | |
"RH_m4\sound\m16a1_s3.wss", | |
1, | |
1, | |
1200 | |
}; | |
begin4[] = | |
{ | |
"RH_m4\sound\m16a1_s4.wss", | |
1, | |
1, | |
1200 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.25, | |
"begin2", | |
0.25, | |
"begin3", | |
0.25, | |
"begin4", | |
0.25 | |
}; | |
}; | |
class SilencedSound : BaseSoundModeType { | |
begin1[] = | |
{ | |
"RH_m4\sound\m16_sd1", | |
1, | |
1, | |
240 | |
}; | |
begin2[] = | |
{ | |
"RH_m4\sound\m16_sd2", | |
1, | |
1, | |
240 | |
}; | |
soundBegin[] = | |
{ | |
"begin1", | |
0.5, | |
"begin2", | |
0.5 | |
}; | |
}; | |
reloadtime = 0.071000002; | |
recoil = "RH_M4_Recoil_Auto"; | |
recoilProne = "RH_M4_RecoilProneAuto"; | |
dispersion = 0.0017500001; | |
aiRateOfFire = 1; | |
aiRateOfFireDistance = 200; | |
minRange = 0; | |
minRangeProbab = 0.80000001; | |
midRange = 60; | |
midRangeProbab = 0.69999999; | |
maxRange = 120; | |
maxRangeProbab = 0.050000001; | |
}; | |
}; | |
class RH_M16A2gl : RH_M16A2 { | |
author = "RobertHammer"; | |
model = "\RH_M4\RH_m16a2gl.p3d"; | |
displayName = "M16A2 M203"; | |
picture = "\RH_m4\inv\m16a2gl_x_ca.paa"; | |
handAnim[] = | |
{ | |
"OFP2_ManSkeleton", | |
"\RH_m4\anim\RH_M4gl.rtm" | |
}; | |
inertia = 0.60000002; | |
muzzles[] = | |
{ | |
"this", | |
"M203" | |
}; | |
class WeaponSlotsInfo : WeaponSlotsInfo { | |
mass = 140; | |
}; | |
}; | |
class CfgCloudlets { | |
class Default; | |
class RH_Rifle556Cartridge : Default { | |
interval = 0.059500001; | |
circleRadius = 0; | |
circleVelocity[] = {0, 0, 0}; | |
particleShape = "\A3\weapons_f\ammo\cartridge.p3d"; | |
particleFSNtieth = 1; | |
particleFSIndex = 0; | |
particleFSFrameCount = 1; | |
particleFSLoop = 0; | |
angleVar = 0; | |
animationName = ""; | |
particleType = "SpaceObject"; | |
timerPeriod = 0.75; | |
lifeTime = 20; | |
moveVelocity[] = | |
{ | |
"-directionX * 4", | |
"- directionY * 4", | |
"- directionZ * 4" | |
}; | |
rotationVelocity = 1; | |
weight = 6; | |
volume = 1; | |
rubbing = 0; | |
size[] = {1.1}; | |
color[] = | |
{ | |
{0.89999998, 0.89999998, 0.89999998, 1} | |
}; | |
animationSpeed[] = {1000}; | |
randomDirectionPeriod = 0.1; | |
randomDirectionIntensity = 0; | |
onTimerScript = ""; | |
beforeDestroyScript = ""; | |
destroyOnWaterSurface = 1; | |
bounceOnSurface = 0.25; | |
bounceOnSurfaceVar = 0.2; | |
blockAIVisibility = 0; | |
sizeCoef = 1; | |
colorCoef[] = {1, 1, 1, 1}; | |
animationSpeedCoef = 1; | |
position[] = | |
{ | |
"positionX", | |
"positionY", | |
"positionZ" | |
}; | |
lifeTimeVar = 0; | |
positionVar[] = {0, 0, 0}; | |
MoveVelocityVar[] = {0.25, 0.25, 0.25}; | |
rotationVelocityVar = 5; | |
sizeVar = 0; | |
colorVar[] = {0, 0, 0, 0}; | |
randomDirectionPeriodVar = 0; | |
randomDirectionIntensityVar = 0; | |
}; | |
class RH_Rifle65Cartridge : Default { | |
interval = 0.059500001; | |
circleRadius = 0; | |
circleVelocity[] = {0, 0, 0}; | |
particleShape = "\A3\weapons_f\ammo\cartridge_65.p3d"; | |
particleFSNtieth = 1; | |
particleFSIndex = 0; | |
particleFSFrameCount = 1; | |
particleFSLoop = 0; | |
angleVar = 0; | |
animationName = ""; | |
particleType = "SpaceObject"; | |
timerPeriod = 0.75; | |
lifeTime = 20; | |
moveVelocity[] = | |
{ | |
"-directionX * 4", | |
"- directionY * 4", | |
"- directionZ * 4" | |
}; | |
rotationVelocity = 1; | |
weight = 6; | |
volume = 1; | |
rubbing = 0; | |
size[] = {1.1}; | |
color[] = | |
{ | |
{0.89999998, 0.89999998, 0.89999998, 1} | |
}; | |
animationSpeed[] = {1000}; | |
randomDirectionPeriod = 0.1; | |
randomDirectionIntensity = 0; | |
onTimerScript = ""; | |
beforeDestroyScript = ""; | |
destroyOnWaterSurface = 1; | |
bounceOnSurface = 0.25; | |
bounceOnSurfaceVar = 0.2; | |
blockAIVisibility = 0; | |
sizeCoef = 1; | |
colorCoef[] = {1, 1, 1, 1}; | |
animationSpeedCoef = 1; | |
position[] = | |
{ | |
"positionX", | |
"positionY", | |
"positionZ" | |
}; | |
lifeTimeVar = 0; | |
positionVar[] = {0, 0, 0}; | |
MoveVelocityVar[] = {0.25, 0.25, 0.25}; | |
rotationVelocityVar = 5; | |
sizeVar = 0; | |
colorVar[] = {0, 0, 0, 0}; | |
randomDirectionPeriodVar = 0; | |
randomDirectionIntensityVar = 0; | |
}; | |
class RH_RifleAmmoCloud : Default { | |
interval = 0.0049999999; | |
circleRadius = 0; | |
circleVelocity[] = {0, 0, 0}; | |
particleShape = "\A3\data_f\ParticleEffects\Universal\Universal"; | |
particleFSNtieth = 16; | |
particleFSIndex = 12; | |
particleFSFrameCount = 8; | |
particleFSLoop = 1; | |
angleVar = 0.5; | |
animationName = ""; | |
particleType = "Billboard"; | |
timerPeriod = 1; | |
lifeTime = 0.44999999; | |
moveVelocity[] = | |
{ | |
"-0.15*directionX", | |
"-0.15*directionY", | |
"-0.15*directionZ" | |
}; | |
rotationVelocity = 1; | |
weight = 0.052999999; | |
volume = 0.039999999; | |
rubbing = 0.1; | |
size[] = {0.25, 0.5}; | |
color[] = | |
{ | |
{0.1, 0.1, 0.1, 0.30000001}, | |
{0.1, 0.1, 0.1, 0.15000001}, | |
{0.1, 0.1, 0.1, 0.059999999}, | |
{0.1, 0.1, 0.1, 0.0099999998} | |
}; | |
animationSpeed[] = {1.2}; | |
randomDirectionPeriod = 0.1; | |
randomDirectionIntensity = 0.079999998; | |
onTimerScript = ""; | |
beforeDestroyScript = ""; | |
destroyOnWaterSurface = 1; | |
blockAIVisibility = 0; | |
sizeCoef = 0.2; | |
colorCoef[] = {1, 1, 1, 0.60000002}; | |
animationSpeedCoef = 1; | |
position[] = | |
{ | |
"positionX", | |
"positionY", | |
"positionZ" | |
}; | |
lifeTimeVar = 0; | |
positionVar[] = {0, 0, 0}; | |
MoveVelocityVar[] = {0.029999999, 0.029999999, 0.029999999}; | |
rotationVelocityVar = 20; | |
sizeVar = 0; | |
colorVar[] = {0, 0, 0, 0}; | |
randomDirectionPeriodVar = 0; | |
randomDirectionIntensityVar = 0; | |
}; | |
class RH_RifleSmokeTrail : Default { | |
interval = 0.0049999999; | |
circleRadius = 0; | |
circleVelocity[] = {0, 0, 0}; | |
particleShape = "\A3\data_f\ParticleEffects\Universal\Refract"; | |
particleFSNtieth = 1; | |
particleFSIndex = 0; | |
particleFSFrameCount = 1; | |
particleFSLoop = 0; | |
angleVar = 0.5; | |
animationName = ""; | |
particleType = "Billboard"; | |
timerPeriod = 1.1; | |
lifeTime = 2.5; | |
moveVelocity[] = | |
{ | |
"-0.15*directionX", | |
"-0.15*directionY", | |
"-0.15*directionZ" | |
}; | |
rotationVelocity = 1; | |
weight = 0.050000001; | |
volume = 0.5; | |
rubbing = 0.1; | |
size[] = {0.30000001, 0.5}; | |
color[] = | |
{ | |
{0.059999999, 0.059999999, 0.059999999, 0.31999999}, | |
{0.30000001, 0.30000001, 0.30000001, 0.28}, | |
{0.30000001, 0.30000001, 0.30000001, 0.25}, | |
{0.30000001, 0.30000001, 0.30000001, 0.22}, | |
{0.30000001, 0.30000001, 0.30000001, 0.1} | |
}; | |
colorCoef[] = {1, 1, 1, 1}; | |
animationSpeed[] = {2, 1}; | |
randomDirectionPeriod = 0.1; | |
randomDirectionIntensity = 0.079999998; | |
onTimerScript = ""; | |
beforeDestroyScript = ""; | |
destroyOnWaterSurface = 1; | |
blockAIVisibility = 0; | |
sizeCoef = 0.1; | |
animationSpeedCoef = 1; | |
position[] = | |
{ | |
"positionX", | |
"positionY", | |
"positionZ" | |
}; | |
lifeTimeVar = 0; | |
positionVar[] = {0, 0, 0}; | |
MoveVelocityVar[] = {0.029999999, 0.029999999, 0.029999999}; | |
rotationVelocityVar = 20; | |
sizeVar = 0; | |
colorVar[] = {0, 0, 0, 0}; | |
randomDirectionPeriodVar = 0; | |
randomDirectionIntensityVar = 0; | |
}; | |
}; | |
class RH_Rifle556Cartridge { | |
class RH_Rifle556Cartridge { | |
simulation = "particles"; | |
type = "RH_Rifle556Cartridge"; | |
position[] = {0, 0, 0}; | |
intensity = 1; | |
interval = 1; | |
lifeTime = 0.050000001; | |
}; | |
}; | |
class RH_Rifle65Cartridge { | |
class RH_Rifle65Cartridge { | |
simulation = "particles"; | |
type = "RH_Rifle65Cartridge"; | |
position[] = {0, 0, 0}; | |
intensity = 1; | |
interval = 1; | |
lifeTime = 0.050000001; | |
}; | |
}; | |
class RH_RifleAmmoCloud { | |
class RH_RifleAmmoCloud { | |
simulation = "particles"; | |
type = "RH_RifleAmmoCloud"; | |
position[] = {0, 0, 0}; | |
intensity = 1; | |
interval = 1; | |
lifeTime = 0.050000001; | |
}; | |
}; | |
class RH_RifleSmokeTrail { | |
class RH_RifleSmokeTrail { | |
simulation = "particles"; | |
type = "RH_RifleSmokeTrail"; | |
position[] = {0, 0, 0}; | |
intensity = 1; | |
interval = 1; | |
lifeTime = 0.050000001; | |
}; | |
}; | |
}; | |
class cfgMods { | |
author = "Modified by Arcommunism"; | |
timepacked = "1429451062"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment