From 9a531b35e5b55d9e0eac4e42ed1014c2f8e85876 Mon Sep 17 00:00:00 2001 From: A Man Date: Thu, 12 Mar 2020 14:16:03 +0100 Subject: [PATCH] Add XM8, add black mk16, mk17 - Add DZ versions for Arma 2 M8, Mk17 Sniper, Mk17 Sniper SD, M110 --- .../Configs/CfgLoot/Groups/Weapons.hpp | 17 +- .../CfgServerTrader/Category/Bandit.hpp | 6 +- .../Configs/CfgServerTrader/Category/Hero.hpp | 6 +- .../CfgServerTrader/Category/Weapons.hpp | 23 +- .../Configs/CfgWeapons/CfgWeapons.hpp | 2 + .../Configs/CfgWeapons/Rifles/M110.hpp | 29 ++ .../Configs/CfgWeapons/Rifles/MK16.hpp | 32 ++ .../Configs/CfgWeapons/Rifles/MK17.hpp | 81 ++- .../Configs/CfgWeapons/Rifles/XM8.hpp | 477 ++++++++++++++++++ SQF/dayz_code/stringtable.xml | 41 +- 10 files changed, 691 insertions(+), 23 deletions(-) create mode 100644 SQF/dayz_code/Configs/CfgWeapons/Rifles/M110.hpp create mode 100644 SQF/dayz_code/Configs/CfgWeapons/Rifles/XM8.hpp diff --git a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp index 154234830..253d16f23 100644 --- a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp @@ -139,8 +139,8 @@ weaponsEU[] = // Sniper Rifles {Loot_WEAPON, 1, L115A3_DZ}, // Tan Lapua {Loot_WEAPON, 1, L115A3_2_DZ}, // Green Lapua - {Loot_WEAPON, 4, SCAR_H_LNG_Sniper_SD}, - {Loot_WEAPON, 4, SCAR_H_LNG_Sniper}, + {Loot_WEAPON, 4, MK17_Sniper_SD_DZ}, + {Loot_WEAPON, 4, MK17_Sniper_DZ}, {Loot_WEAPON, 2, HK417_Sniper_SD_DZ}, {Loot_WEAPON, 2, HK417_Sniper_DZ}, {Loot_WEAPON, 1, RSASS_DZ}, @@ -166,10 +166,11 @@ weaponsEU[] = {Loot_WEAPON, 5, G36C_Camo_DZ}, {Loot_WEAPON, 5, G36K_Camo_DZ}, {Loot_WEAPON, 5, G36C_Camo_Holo_SD_DZ}, - {Loot_WEAPON, 5, m8_compact}, - {Loot_WEAPON, 5, m8_sharpshooter}, - {Loot_WEAPON, 5, m8_holo_sd}, - {Loot_WEAPON, 5, m8_carbine}, + {Loot_WEAPON, 5, XM8_Compact_DZ}, + {Loot_WEAPON, 5, XM8_Sharpsh_DZ}, + {Loot_WEAPON, 5, XM8_SD_DZ}, + {Loot_WEAPON, 5, XM8_DZ}, + {Loot_WEAPON, 5, XM8_GL_DZ}, {Loot_WEAPON, 5, L85A2_DZ}, {Loot_WEAPON, 5, HK53A3_DZ}, {Loot_WEAPON, 5, Famas_DZ}, @@ -187,7 +188,7 @@ weaponsEU[] = {Loot_WEAPON, 3, MK17_ACOG_SD_DZ}, // Machine Guns - {Loot_WEAPON, 6, M8_SAW}, + {Loot_WEAPON, 6, XM8_SAW_DZ}, {Loot_WEAPON, 4, L110A1_DZ}, {Loot_WEAPON, 4, MG36_Camo_DZ}, {Loot_WEAPON, 4, MG36_DZ}, @@ -206,7 +207,7 @@ weaponsCZ[] = // Sniper Rifles {Loot_WEAPON, 3, CZ750_DZ}, - {Loot_WEAPON, 3, M110_NVG_EP1}, // Technically a US rifle, but the CZ group does not have a DMR type rifle. + {Loot_WEAPON, 3, M110_NV_DZ}, // Technically a US rifle, but the CZ group does not have a DMR type rifle. {Loot_WEAPON, 1, XM2010_DZ}, // High value weapon, low spawn chance. // Submachine Guns diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Bandit.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Bandit.hpp index c36e0e68a..a0889792c 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Bandit.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Bandit.hpp @@ -142,9 +142,9 @@ class Category_8 { class M249_m145_EP1_DZE {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};}; class m240_scoped_EP1_DZE {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};}; class Pecheneg_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};}; - class SCAR_H_LNG_Sniper {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; - class SCAR_H_LNG_Sniper_SD {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; - class M110_NVG_EP1 {type = "trade_weapons";buy[] = {7,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};}; + class MK17_Sniper_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; + class MK17_Sniper_SD_DZ {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class M110_NV_DZ {type = "trade_weapons";buy[] = {7,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};}; class RSASS_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; class RSASS_SD_DZ {type = "trade_weapons";buy[] = {-6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; class HK417_Sniper_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Hero.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Hero.hpp index 301c67772..6a4113e2d 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Hero.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Hero.hpp @@ -142,9 +142,9 @@ class Category_3 { class M249_m145_EP1_DZE {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};}; class m240_scoped_EP1_DZE {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};}; class Pecheneg_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};}; - class SCAR_H_LNG_Sniper {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; - class SCAR_H_LNG_Sniper_SD {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; - class M110_NVG_EP1 {type = "trade_weapons";buy[] = {7,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};}; + class MK17_Sniper_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; + class MK17_Sniper_SD_DZ {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class M110_NV_DZ {type = "trade_weapons";buy[] = {7,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};}; class RSASS_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; class RSASS_SD_DZ {type = "trade_weapons";buy[] = {-6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; class HK417_Sniper_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp index 564462296..912c64345 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp @@ -190,10 +190,21 @@ class Category_16 { class CTAR21_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class CTAR21_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; class CTAR21_ACOG_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};}; - class m8_compact {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; - class m8_sharpshooter {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; - class m8_holo_sd {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; - class m8_carbine {type = "trade_weapons";buy[] = {5,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_Compact_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_DES_Compact_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_GREY_Compact_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_GREY_2_Compact_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_DES_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_GREY_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_GREY_2_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; + class XM8_GL_DZ {type = "trade_weapons";buy[] = {9,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; + class XM8_DES_GL_DZ {type = "trade_weapons";buy[] = {9,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; + class XM8_GREY_GL_DZ {type = "trade_weapons";buy[] = {9,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; + class XM8_Sharpsh_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; + class XM8_DES_Sharpsh_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; + class XM8_GREY_Sharpsh_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; + class XM8_SD_DZ {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; class CZ805_A1_DZ {type = "trade_weapons";buy[] = {5,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class CZ805_A1_GL_DZ {type = "trade_weapons";buy[] = {6,"ItemGoldBar"};sell[] = {3,"ItemGoldBar"};}; class CZ805_A2_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; @@ -631,7 +642,9 @@ class Category_18 { class RPK_PSO1_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {14,"ItemGoldBar"};}; class UK59_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; class PKM_DZ {type = "trade_weapons";buy[] = {3,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; - class M8_SAW {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; + class XM8_SAW_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; + class XM8_DES_SAW_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; + class XM8_GREY_SAW_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; class L86A2_LSW_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; class MG36_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; class MG36_Camo_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; diff --git a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp index 3a82692c4..46642193e 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp @@ -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" diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/M110.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/M110.hpp new file mode 100644 index 000000000..74217f6fe --- /dev/null +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/M110.hpp @@ -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; + }; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK16.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK16.hpp index 21a34a8a9..9c29217f9 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK16.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK16.hpp @@ -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 \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK17.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK17.hpp index d3cc472e7..1ea7257eb 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK17.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/MK17.hpp @@ -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 diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/XM8.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/XM8.hpp new file mode 100644 index 000000000..07fe276a5 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/XM8.hpp @@ -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; + }; +}; + \ No newline at end of file diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 5d515f4f6..322c0feb9 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -12857,7 +12857,7 @@ Silenced Assault Rifle <br/>Caliber: 7.62x51mm Schallgedämpftes Sturmgewehr <br/>Kaliber: 7.62x51mm - + @@ -12958,7 +12958,7 @@ MK17 ACOG SD - + Assault Rifle <br/>Caliber: 7.62x51mm Sturmgewehr <br/>Kaliber: 7.62x51mm @@ -12966,6 +12966,43 @@ Silenced Assault Rifle <br/>Caliber: 7.62x51mm SD Schallgedämpftes Sturmgewehr <br/>Kaliber: 7.62x51mm SD + + + Sniper Rifle <br/>Caliber: 7.62x51mm + Scharfschützengewehr <br/>Kaliber: 7.62x51mm + + + Silenced Sniper Rifle <br/>Caliber: 7.62x51mm + Schallgedämpftes Scharfschützengewehr <br/>Kaliber: 7.62x51mm + + + + + XM8 Carbine + + + XM8 XM320 Carbine + + + XM8 Compact + + + XM8 Sharpshooter + + + XM8 SAW + + + XM8 Carbine SD + + + + + M110 NV + + + Sniper Rifle with a night vision scope. <br/>Caliber: 7.62x51mm + Scharfschützengewehr mit einem Nachtsichtvisier. <br/>Kaliber: 7.62x51mm