Add XM8, add black mk16, mk17

- Add DZ versions for Arma 2 M8, Mk17 Sniper, Mk17 Sniper SD, M110
This commit is contained in:
A Man
2020-03-12 14:16:03 +01:00
parent 1105073646
commit 9a531b35e5
10 changed files with 691 additions and 23 deletions

View File

@@ -100,6 +100,7 @@ class CfgWeapons
#include "Rifles\CTAR21.hpp"
#include "Rifles\Masada.hpp"
#include "Rifles\MK16.hpp"
#include "Rifles\XM8.hpp"
class M14_EP1;
#include "Rifles\M14.hpp"
@@ -108,6 +109,7 @@ class CfgWeapons
#include "Rifles\HK417.hpp"
#include "Rifles\MK14.hpp"
#include "Rifles\MK17.hpp"
#include "Rifles\M110.hpp"
//CZ 805
#include "Rifles\CZ805.hpp"

View File

@@ -0,0 +1,29 @@
class M110_NVG_EP1;
class M110_NV_DZ: M110_NVG_EP1 {
displayName = $STR_DZ_WPN_M110_NV_NAME;
descriptionShort = $STR_DZ_WPN_M110_NV_DESC;
class OpticsModes
{
class HTWS
{
opticsID = 1;
useModelOptics = "true";
opticsZoomMin = 0.0293;
distanceZoomMin = 300;
opticsZoomMax = 0.0293;
distanceZoomMax = 300;
opticsZoomInit = 0.0293;
memoryPointCamera = "eye";
opticsFlare = "true";
opticsDisablePeripherialVision = "true";
cameraDir = "";
opticsPPEffects[] = {};
visionMode[] = {"Normal","NVG"};
thermalMode[] = {};
discretefov[] = {0.0755,0.0249};
discreteInitIndex = 0;
discreteDistance[] = {100,200,300,400,500,600,700,800};
discreteDistanceInitIndex = 2;
};
};
};

View File

@@ -426,6 +426,38 @@ class MK16_GL_ACOG_SD_DZ : MK16_CCO_SD_DZ
};
};
class MK16_BL_CCO_DZ : MK16_CCO_DZ
{
model = "\RH_mgswp\RH_scarLb_aim.p3d";
picture = "\RH_mgswp\inv\scarlb_aim.paa";
class Attachments {};
class ItemActions {};
};
class MK16_BL_GL_ACOG_DZ : MK16_GL_ACOG_DZ
{
model = "\RH_mgswp\RH_Scarlb_gl_acog.p3d";
picture = "\RH_mgswp\inv\Scarlb_gl_acog.paa";
class Attachments {};
class ItemActions {};
};
class MK16_BL_Holo_SD_DZ : MK16_Holo_SD_DZ
{
model = "\RH_mgswp\RH_Scarlb_sd_eotech.p3d";
picture = "\RH_mgswp\inv\scarlb_sd_eotech.paa";
class Attachments {};
class ItemActions {};
};
class MK16_BL_GL_CCO_SD_DZ : MK16_GL_CCO_SD_DZ
{
model = "\RH_mgswp\RH_Scarlb_sd_gl_aim.p3d";
picture = "\RH_mgswp\inv\Scarlb_sd_gl_aim.paa";
class Attachments {};
class ItemActions {};
};
#undef MK16_ACOG
#undef MK16_Laser
#undef MK16_M203

View File

@@ -71,7 +71,7 @@ class MK17_DZ : M4A1
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\scarh",1.77828,1,1700};
begin1[] = {"\RH_mgswp\sound\scarh",1.77828,1,1100};
soundBegin[] = {"begin1",1};
dispersion = 0.0025;
reloadtime = 0.096;
@@ -88,7 +88,7 @@ class MK17_DZ : M4A1
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\scarh",1.77828,1,1700};
begin1[] = {"\RH_mgswp\sound\scarh",1.77828,1,1100};
soundBegin[] = {"begin1",1};
dispersion = 0.0025;
reloadtime = 0.096;
@@ -392,6 +392,83 @@ class MK17_GL_Holo_SD_DZ : MK17_CCO_SD_DZ
};
};
class MK17_BL_Holo_DZ : MK17_Holo_DZ
{
model = "\RH_mgswp\RH_Scarhb_eotech.p3d";
picture = "\RH_mgswp\inv\scarhb_eotech.paa";
class Attachments {};
class ItemActions {};
};
class MK17_BL_GL_ACOG_DZ : MK17_GL_ACOG_DZ
{
model = "\RH_mgswp\RH_Scarhb_gl_acog.p3d";
picture = "\RH_mgswp\inv\Scarhb_gl_acog.paa";
class Attachments {};
class ItemActions {};
};
class MK17_BL_CCO_SD_DZ : MK17_CCO_SD_DZ
{
model = "\RH_mgswp\RH_scarhb_sd_aim.p3d";
picture = "\RH_mgswp\inv\scarhb_sd_aim.paa";
class Attachments {};
class ItemActions {};
};
class MK17_BL_GL_Holo_SD_DZ : MK17_GL_Holo_SD_DZ
{
model = "\RH_mgswp\RH_scarhb_sd_gl_eotech.p3d";
picture = "\RH_mgswp\inv\scarhb_sd_gl_eotech.paa";
class Attachments {};
class ItemActions {};
};
class SCAR_H_LNG_Sniper;
class MK17_Sniper_DZ: SCAR_H_LNG_Sniper {
descriptionShort = $STR_DZ_WPN_MK17_SNIPER_DESC;
};
class SCAR_H_LNG_Sniper_SD;
class MK17_Sniper_SD_DZ: SCAR_H_LNG_Sniper_SD {
descriptionShort = $STR_DZ_WPN_MK17SD_SNIPER_DESC;
modes[] = {"SCAR_H_SD_Single","SCAR_H_SD_FullAuto"};
class SCAR_H_SD_Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\scarh_sd",1.0,1,75};
soundBegin[] = {"begin1",1};
dispersion = 0.0015;
reloadTime = 0.1;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
minRange = 2;
minRangeProbab = 0.1;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 350;
maxRangeProbab = 0.5;
aiRateOfFireDistance = 350;
};
class SCAR_H_SD_FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\scarh_sd",1.0,1,75};
soundBegin[] = {"begin1",1};
end1[] = {"\ca\sounds_E\weapons_E\SCAR\SCAR_SD_single1",2.5118864,1,50};
end2[] = {"\ca\sounds_E\weapons_E\SCAR\SCAR_SD_single2",2.5118864,1,50};
soundEnd[] = {"end1",0.5,"end2",0.5};
dispersion = 0.004;
reloadTime = 0.1;
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
minRange = 2;
minRangeProbab = 0.1;
midRange = 50;
midRangeProbab = 0.58;
maxRange = 100;
maxRangeProbab = 0.04;
};
};
#undef MK17_ACOG
#undef MK17_Laser

View File

@@ -0,0 +1,477 @@
class m8_carbine;
class XM8_DZ: m8_carbine {
scope = public;
displayName = $STR_DZ_WPN_XM8_CARBINE_NAME;
descriptionShort = $STR_DSS_XM8;
model = "\RH_mgswp\RH_xm8.p3d";
picture = "\RH_mgswp\inv\xm8.paa";
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\data\Anim\AK.rtm"};
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 2;
minRangeProbab = 0.3;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 350;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
};
class XM8_DES_DZ: XM8_DZ {
model = "\RH_mgswp\RH_xm8d.p3d";
picture = "\RH_mgswp\inv\xm8d.paa";
};
class XM8_GREY_DZ: XM8_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_carbine.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_ca.paa";
};
class XM8_GREY_2_DZ: XM8_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_carbine_pmc.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_CQC_ca.paa";
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};
};
class m8_carbineGL;
class XM8_GL_DZ: m8_carbineGL {
displayName = $STR_DZ_WPN_XM8_GL_CARBINE_NAME;
model = "\RH_mgswp\RH_xm8gl.p3d";
picture = "\RH_mgswp\inv\xm8gl.paa";
muzzles[] = {"this","XM320Muzzle"};
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
handAnim[] = {"OFP2_ManSkeleton","\CA\weapons2\Data\Anim\XM8GL.rtm"};
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 2;
minRangeProbab = 0.3;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 350;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
soundBurst = 0;
ffCount = 3;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.3;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
};
class XM8_DES_GL_DZ: XM8_GL_DZ {
model = "\RH_mgswp\RH_xm8dgl.p3d";
picture = "\RH_mgswp\inv\xm8dgl.paa";
};
class XM8_GREY_GL_DZ: XM8_GL_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_carbineGL.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_xm320_ca.paa";
};
class m8_compact;
class XM8_Compact_DZ: m8_compact {
displayName = $STR_DZ_WPN_XM8_COMPACT_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\RH_mgswp\RH_xm8c.p3d";
picture = "\RH_mgswp\inv\xm8c.paa";
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.002;
minRange = 2;
minRangeProbab = 0.1;
midRange = 150;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.002;
minRange = 1;
minRangeProbab = 0.1;
midRange = 60;
midRangeProbab = 0.7;
maxRange = 100;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.002;
minRange = 0;
minRangeProbab = 0.1;
midRange = 20;
midRangeProbab = 0.7;
maxRange = 60;
maxRangeProbab = 0.05;
};
};
class XM8_DES_Compact_DZ: XM8_Compact_DZ {
model = "\RH_mgswp\RH_xm8dc.p3d";
picture = "\RH_mgswp\inv\xm8dc.paa";
};
class XM8_GREY_Compact_DZ: XM8_Compact_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_compact.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_compact_ca.paa";
};
class XM8_GREY_2_Compact_DZ: XM8_Compact_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_compact_pmc.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_compact_cco_ca.paa";
class FlashLight
{
color[] = {0.9,0.9,0.7,0.9};
ambient[] = {0.1,0.1,0.1,1.0};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1,1,0.5};
brightness = 0.1;
};
};
class m8_sharpshooter;
class XM8_Sharpsh_DZ: m8_sharpshooter {
displayName = $STR_DZ_WPN_XM8_SHARPSHOOTER_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\RH_mgswp\RH_xm8sh.p3d";
picture = "\RH_mgswp\inv\xm8sh.paa";
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.0007;
minRange = 2;
minRangeProbab = 0.3;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 400;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.0007;
minRange = 1;
minRangeProbab = 0.2;
midRange = 80;
midRangeProbab = 0.7;
maxRange = 120;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
dispersion = 0.0007;
minRange = 0;
minRangeProbab = 0.1;
midRange = 25;
midRangeProbab = 0.7;
maxRange = 70;
maxRangeProbab = 0.05;
};
};
class XM8_DES_Sharpsh_DZ: XM8_Sharpsh_DZ {
model = "\RH_mgswp\RH_xm8dsh.p3d";
picture = "\RH_mgswp\inv\xm8dsh.paa";
};
class XM8_GREY_Sharpsh_DZ: XM8_Sharpsh_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_sharpshooter.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_sharp_ca.paa";
};
class m8_SAW;
class XM8_SAW_DZ: m8_SAW {
displayName = $STR_DZ_WPN_XM8_SAW_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\RH_mgswp\RH_xm8saw.p3d";
picture = "\RH_mgswp\inv\xm8saw.paa";
magazines[] =
{
100Rnd_556x45_BetaCMag,
30Rnd_556x45_G36,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
modes[] = {"FullAuto"};
class FullAuto: Mode_FullAuto
{
recoil = "recoil_auto_machinegun_5outof10";
recoilProne = "recoil_auto_machinegun_prone_5outof10";
dispersion = 0.002;
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
soundBurst = 0;
minRange = 1;
minRangeProbab = 0.3;
midRange = 5;
midRangeProbab = 0.58;
maxRange = 10;
maxRangeProbab = 0.04;
showToPlayer = 1;
};
};
class XM8_DES_SAW_DZ: XM8_SAW_DZ {
model = "\RH_mgswp\RH_xm8dsaw.p3d";
picture = "\RH_mgswp\inv\xm8dsaw.paa";
};
class XM8_GREY_SAW_DZ: XM8_SAW_DZ {
model = "\Ca\Weapons_PMC\XM8\m8_SAW.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_auto_ca.paa";
};
class XM8_SD_DZ: XM8_DZ {
displayName = $STR_DZ_WPN_XM8_CARBINE_SD_NAME;
reloadMagazineSound[] = {"\RH_mgswp\sound\xm8_reload",0.0316228,1,20};
model = "\Ca\Weapons_PMC\XM8\m8_Sup_HOLO.p3d";
picture = "\ca\Weapons_PMC\Data\ui\w_xm8_supHOLO_ca.paa";
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};
class OpticsModes
{
class CCO
{
opticsID = 1;
useModelOptics = 0;
opticsPPEffects[] = {};
distanceZoomMin = 100;
distanceZoomMax = 100;
discreteDistance[] = {100};
discreteDistanceInitIndex = 0;
opticsZoomMin = 0.25;
opticsZoomInit = 0.5;
opticsZoomMax = 1.1;
memoryPointCamera = "eye";
visionMode[] = {};
opticsFlare = 0;
opticsDisablePeripherialVision = 0;
cameraDir = "";
};
};
magazines[] =
{
30Rnd_556x45_G36SD,
30Rnd_556x45_StanagSD
};
class FlashLight
{
color[] = {0.9,0.9,0.7,0.9};
ambient[] = {0.1,0.1,0.1,1.0};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1,1,0.5};
brightness = 0.1;
};
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_mgswp\sound\m4sd",1.0,1,110};
soundBegin[] = {"begin1",1};
reloadTime = 0.08;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
minRange = 2;
minRangeProbab = 0.1;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 150;
maxRangeProbab = 0.05;
};
class Burst: Mode_Burst
{
begin1[] = {"\RH_mgswp\sound\m4sd",1.0,1,110};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
soundBurst = 0;
ffCount = 3;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
minRange = 1;
minRangeProbab = 0.1;
midRange = 50;
midRangeProbab = 0.7;
maxRange = 100;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[] = {"\RH_mgswp\sound\m4sd",1.0,1,110};
soundBegin[] = {"begin1",1};
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
end1[] = {"ca\sounds_E\weapons_E\SCAR\SCAR_SD_single1",2.5118864,1,50};
end2[] = {"ca\sounds_E\weapons_E\SCAR\SCAR_SD_single2",2.5118864,1,50};
soundEnd[] = {"end1",0.5,"end2",0.5};
minRange = 0;
minRangeProbab = 0.1;
midRange = 20;
midRangeProbab = 0.7;
maxRange = 30;
maxRangeProbab = 0.05;
};
};