diff --git a/README.md b/README.md
index 8681ae394..3267f3138 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,7 @@ Included Custom Addons
* RH M14 pack by Robert Hammer - http://www.armaholic.com/page.php?id=11374
* RH Pistol Pack Remake by Robert Hammer - http://www.armaholic.com/page.php?id=12800
* RH SMG pack by Robert Hammer - http://www.armaholic.com/page.php?id=13788
+* RH HK416 Pack by Robert Hammer - http://www.armaholic.com/page.php?id=11789
--------------------------
Included Custom Islands
diff --git a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp
index be5db85ef..a447c24ef 100644
--- a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp
+++ b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp
@@ -151,6 +151,8 @@ weaponsEU[] =
{Loot_WEAPON, 5, L85A2_DZ},
{Loot_WEAPON, 5, HK53A3_DZ},
{Loot_WEAPON, 5, Famas_DZ},
+ {Loot_WEAPON, 5, HK416_DZ},
+ {Loot_WEAPON, 5, HK416C_DZ},
{Loot_WEAPON, 5, SCAR_L_CQC_CCO_SD},
{Loot_WEAPON, 5, SCAR_L_CQC},
{Loot_WEAPON, 5, SCAR_L_CQC_Holo},
diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp
index 08c2ff4e4..9f02bb145 100644
--- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp
+++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp
@@ -177,6 +177,10 @@ class Category_15 {
//Assault Rifles
class Category_16 {
+ class KAC_PDW_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
+ class KAC_PDW_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class KAC_PDW_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class KAC_PDW_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"};};
@@ -281,6 +285,26 @@ class Category_16 {
class M4A1_GL_ACOG_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {12,"ItemGoldBar"};};
class M4A1_GL_ACOG_SD_FL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {13,"ItemGoldBar"};};
class M4A1_GL_ACOG_SD_MFL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {14,"ItemGoldBar"};};
+ class HK416_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
+ class HK416_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class HK416_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class HK416_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
+ class HK416_CCO_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {8,"ItemGoldBar"};};
+ class HK416_Holo_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {8,"ItemGoldBar"};};
+ class HK416_GL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class HK416_GL_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {8,"ItemGoldBar"};};
+ class HK416_GL_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
+ class HK416_GL_CCO_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {1,"ItemGoldBar10oz"};};
+ class HK416_GL_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
+ class HK416_GL_Holo_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {1,"ItemGoldBar10oz"};};
+ class HK416C_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
+ class HK416C_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class HK416C_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class HK416C_GL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
+ class HK416C_GL_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
+ class HK416C_GL_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
+ class HK416C_ACOG_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
+ class HK416C_GL_ACOG_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {8,"ItemGoldBar"};};
class SCAR_L_CQC {type = "trade_weapons";buy[] = {7,"ItemGoldBar"};sell[] = {3,"ItemGoldBar"};};
class SCAR_L_CQC_CCO_SD {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {8,"ItemGoldBar"};};
class SCAR_L_CQC_Holo {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
@@ -485,10 +509,6 @@ class Category_16 {
class ACR_SNOW_NV_GL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {16,"ItemGoldBar"};};
class ACR_SNOW_NV_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {18,"ItemGoldBar"};};
class ACR_SNOW_NV_GL_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};};
- class KAC_PDW_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
- class KAC_PDW_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
- class KAC_PDW_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
- class KAC_PDW_ACOG_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
};
//Sniper Rifles
diff --git a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp
index 0debb90d5..a0753d7af 100644
--- a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp
+++ b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp
@@ -80,6 +80,7 @@ class CfgWeapons
class M4A1_AIM_SD_camo;
#include "Rifles\M4A1.hpp"
#include "Rifles\M4A3.hpp"
+ #include "Rifles\HK416.hpp"
//HK53
#include "Rifles\HK53.hpp"
//Magpul PDR
@@ -87,7 +88,7 @@ class CfgWeapons
//Famas
#include "Rifles\Famas.hpp"
#include "Rifles\ACR.hpp"
- #include "Rifles\KACPDW.hpp"
+ #include "Rifles\KACPDW.hpp"
class M14_EP1;
#include "Rifles\M14.hpp"
diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/HK416.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/HK416.hpp
new file mode 100644
index 000000000..6357e4aeb
--- /dev/null
+++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/HK416.hpp
@@ -0,0 +1,619 @@
+#define HK416_M203 muzzles[] = {this, M203Muzzle};\
+handAnim[]={"OFP2_ManSkeleton","\Ca\weapons\data\Anim\M16GL.rtm"}
+
+#define HK416C_ACOG modelOptics = "\Ca\weapons_E\SCAR\ACOG_TA31_optic_4x.p3d";\
+class OpticsModes\
+{\
+ class ACOG\
+ {\
+ opticsID = 1;\
+ useModelOptics = true;\
+ opticsFlare = true;\
+ opticsDisablePeripherialVision = true;\
+ opticsZoomMin = 0.0623;\
+ opticsZoomMax = 0.0623;\
+ opticsZoomInit = 0.0623;\
+ distanceZoomMin = 300;\
+ distanceZoomMax = 300;\
+ memoryPointCamera = "opticView";\
+ visionMode[] = {"Normal"};\
+ opticsPPEffects[] = {"OpticsCHAbera3","OpticsBlur3"};\
+ cameraDir = "";\
+ };\
+ \
+ class Iron\
+ {\
+ opticsID = 2;\
+ useModelOptics = false;\
+ opticsFlare = false;\
+ opticsDisablePeripherialVision = false;\
+ opticsZoomMin = 0.25;\
+ opticsZoomMax = 1.1;\
+ opticsZoomInit = 0.5;\
+ distanceZoomMin = 100;\
+ distanceZoomMax = 100;\
+ memoryPointCamera = "eye";\
+ visionMode[] = {};\
+ opticsPPEffects[] = {};\
+ cameraDir = "";\
+ };\
+}
+
+//Iron sights
+
+class HK416_DZ : M4A1
+{
+ model = "\RH_hk416\RH_hk416.p3d";
+ picture = "\RH_hk416\inv\hk416.paa";
+ displayName = $STR_DZ_WPN_HK416_NAME;
+
+ handAnim[] = {"OFP2_ManSkeleton","\RH_hk416\Anim\Hk416_anim.rtm"};
+ reloadMagazineSound[] = {"\RH_hk416\sound\Hk416_Reload.wss",0.056234,1,20};
+
+ modes[] = {"Single","FullAuto"};
+ class Single: Mode_SemiAuto
+ {
+ begin1[] = {"\RH_hk416\sound\hk416.wss",1.778279,1,800};
+ soundBegin[] = {"begin1",1};
+ reloadtime = 0.071;
+ dispersion = 0.0025;
+ minRange = 2;
+ minRangeProbab = 0.1;
+ midRange = 250;
+ midRangeProbab = 0.7;
+ maxRange = 400;
+ maxRangeProbab = 0.05;
+ };
+ class FullAuto: Mode_FullAuto
+ {
+ begin1[] = {"\RH_hk416\sound\hk416.wss",1.778279,1,800};
+ soundBegin[] = {"begin1",1};
+ reloadtime = 0.071;
+ dispersion = 0.0025;
+ minRange = 2;
+ minRangeProbab = 0.1;
+ midRange = 60;
+ midRangeProbab = 0.7;
+ maxRange = 90;
+ maxRangeProbab = 0.05;
+ };
+
+ magazines[] =
+ {
+ 30Rnd_556x45_Stanag,
+ 30Rnd_556x45_G36,
+ 100Rnd_556x45_BetaCMag,
+ 20Rnd_556x45_Stanag,
+ 60Rnd_556x45_Stanag_tape_ice_DZE
+ };
+
+ class Attachments
+ {
+ Attachment_CCO = "HK416_CCO_DZ";
+ Attachment_Holo = "HK416_Holo_DZ";
+ Attachment_M203 = "HK416_GL_DZ";
+ Attachment_Sup556 = "HK416_SD_DZ";
+ };
+};
+
+class HK416_SD_DZ : M4A1_AIM_SD_camo
+{
+ model = "\RH_hk416\RH_hk416sd.p3d";
+ picture = "\RH_hk416\inv\hk416sd.paa";
+ displayName = $STR_DZ_WPN_HK416_SD_NAME;
+
+ handAnim[] = {"OFP2_ManSkeleton","\RH_hk416\Anim\Hk416_anim.rtm"};
+ reloadMagazineSound[] = {"\RH_hk416\sound\Hk416_Reload.wss",0.056234,1,20};
+
+ modes[] = {"Single","FullAuto"};
+ class Single: Mode_SemiAuto
+ {
+ begin1[] = {"\RH_hk416\sound\hk416sd.wss",1.0,1,80};
+ soundBegin[] = {"begin1",1};
+ reloadtime = 0.071;
+ dispersion = 0.0025;
+ minRange = 2;
+ minRangeProbab = 0.1;
+ midRange = 250;
+ midRangeProbab = 0.7;
+ maxRange = 400;
+ maxRangeProbab = 0.05;
+ };
+ class FullAuto: Mode_FullAuto
+ {
+ begin1[] = {"\RH_hk416\sound\hk416sd.wss",1.0,1,80};
+ soundBegin[] = {"begin1",1};
+ reloadtime = 0.071;
+ dispersion = 0.0025;
+ minRange = 2;
+ minRangeProbab = 0.1;
+ midRange = 60;
+ midRangeProbab = 0.7;
+ maxRange = 90;
+ maxRangeProbab = 0.05;
+ };
+
+ magazines[] =
+ {
+ 30Rnd_556x45_StanagSD,
+ 30Rnd_556x45_G36SD
+ };
+
+ class Attachments
+ {
+ Attachment_CCO = "HK416_CCO_SD_DZ";
+ Attachment_Holo = "HK416_Holo_SD_DZ";
+ Attachment_M203 = "HK416_GL_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveSuppressor
+ {
+ text = $STR_ATTACHMENT_RMVE_Silencer;
+ script = "; ['Attachment_Sup556',_id,'HK416_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+
+//Grenade launcher
+
+class HK416_GL_DZ : HK416_DZ
+{
+ model = "\RH_hk416\RH_hk416gl.p3d";
+ picture = "\RH_hk416\inv\hk416gl.paa";
+ displayName = $STR_DZ_WPN_HK416_GL_NAME;
+
+ HK416_M203;
+
+ class Attachments
+ {
+ Attachment_CCO = "HK416_GL_CCO_DZ";
+ Attachment_Holo = "HK416_GL_Holo_DZ";
+ Attachment_Sup556 = "HK416_GL_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416_GL_SD_DZ : HK416_SD_DZ
+{
+ model = "\RH_hk416\RH_hk416sdgl.p3d";
+ picture = "\RH_hk416\inv\hk416sdgl.paa";
+ displayName = $STR_DZ_WPN_HK416_GL_SD_NAME;
+
+ HK416_M203;
+
+ class Attachments
+ {
+ Attachment_CCO = "HK416_GL_CCO_SD_DZ";
+ Attachment_Holo = "HK416_GL_Holo_SD_DZ";
+ Attachment_ACOG = "HK416_GL_ACOG_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveSuppressor
+ {
+ text = $STR_ATTACHMENT_RMVE_Silencer;
+ script = "; ['Attachment_Sup556',_id,'HK416_GL_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//CCO
+
+class HK416_CCO_DZ : HK416_DZ
+{
+ model = "\RH_hk416\RH_hk416aim.p3d";
+ picture = "\RH_hk416\inv\hk416aim.paa";
+ displayName = $STR_DZ_WPN_HK416_CCO_NAME;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416_GL_CCO_DZ";
+ Attachment_Sup556 = "HK416_CCO_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveCCO
+ {
+ text = $STR_DZ_ATT_CCO_RMVE;
+ script = "; ['Attachment_CCO',_id,'HK416_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416_CCO_SD_DZ : HK416_SD_DZ
+{
+ model = "\RH_hk416\RH_hk416sdaim.p3d";
+ picture = "\RH_hk416\inv\hk416sdaim.paa";
+ displayName = $STR_DZ_WPN_HK416_CCO_SD_NAME;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416_GL_CCO_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveCCO
+ {
+ text = $STR_DZ_ATT_CCO_RMVE;
+ script = "; ['Attachment_CCO',_id,'HK416_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveSuppressor
+ {
+ text = $STR_ATTACHMENT_RMVE_Silencer;
+ script = "; ['Attachment_Sup556',_id,'HK416_CCO_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//Grenade launcher
+
+class HK416_GL_CCO_DZ : HK416_GL_DZ
+{
+ model = "\RH_hk416\RH_hk416glaim.p3d";
+ picture = "\RH_hk416\inv\hk416glaim.paa";
+ displayName = $STR_DZ_WPN_HK416_GL_CCO_NAME;
+
+ class Attachments
+ {
+ Attachment_Sup556 = "HK416_GL_CCO_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveCCO
+ {
+ text = $STR_DZ_ATT_CCO_RMVE;
+ script = "; ['Attachment_CCO',_id,'HK416_GL_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416_CCO_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416_GL_CCO_SD_DZ : HK416_GL_SD_DZ
+{
+ model = "\RH_hk416\RH_hk416sdglaim.p3d";
+ picture = "\RH_hk416\inv\hk416sdglaim.paa";
+ displayName = $STR_DZ_WPN_HK416_GL_CCO_SD_NAME;
+
+ class Attachments {};
+
+ class ItemActions
+ {
+ class RemoveCCO
+ {
+ text = $STR_DZ_ATT_CCO_RMVE;
+ script = "; ['Attachment_CCO',_id,'HK416_GL_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416_CCO_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveSuppressor
+ {
+ text = $STR_ATTACHMENT_RMVE_Silencer;
+ script = "; ['Attachment_Sup556',_id,'HK416_GL_CCO_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//Holo
+
+class HK416_Holo_DZ : HK416_DZ
+{
+ model = "\RH_hk416\RH_hk416eotech.p3d";
+ picture = "\RH_hk416\inv\hk416eotech.paa";
+ displayName = $STR_DZ_WPN_HK416_HOLO_NAME;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416_GL_Holo_DZ";
+ Attachment_Sup556 = "HK416_Holo_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveHolo
+ {
+ text = $STR_DZ_ATT_HOLO_RMVE;
+ script = "; ['Attachment_Holo',_id,'HK416_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416_Holo_SD_DZ : HK416_SD_DZ
+{
+ model = "\RH_hk416\RH_hk416sdeotech.p3d";
+ picture = "\RH_hk416\inv\hk416sdeotech.paa";
+ displayName = $STR_DZ_WPN_HK416_HOLO_SD_NAME;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416_GL_Holo_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveHolo
+ {
+ text = $STR_DZ_ATT_HOLO_RMVE;
+ script = "; ['Attachment_Holo',_id,'HK416_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveSuppressor
+ {
+ text = $STR_ATTACHMENT_RMVE_Silencer;
+ script = "; ['Attachment_Sup556',_id,'HK416_Holo_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//Grenade launcher
+
+class HK416_GL_Holo_DZ : HK416_GL_DZ
+{
+ model = "\RH_hk416\RH_hk416gleotech.p3d";
+ picture = "\RH_hk416\inv\Hk416gleotech.paa";
+ displayName = $STR_DZ_WPN_HK416_GL_HOLO_NAME;
+
+ class Attachments
+ {
+ Attachment_Sup556 = "HK416_GL_Holo_SD_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveHolo
+ {
+ text = $STR_DZ_ATT_HOLO_RMVE;
+ script = "; ['Attachment_Holo',_id,'HK416_GL_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416_Holo_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416_GL_Holo_SD_DZ : HK416_GL_SD_DZ
+{
+ model = "\RH_hk416\RH_hk416sdgleotech.p3d";
+ picture = "\RH_hk416\inv\hk416sdgleotech.paa";
+ displayName = $STR_DZ_WPN_HK416_GL_HOLO_SD_NAME;
+
+ class Attachments {};
+
+ class ItemActions
+ {
+ class RemoveHolo
+ {
+ text = $STR_DZ_ATT_HOLO_RMVE;
+ script = "; ['Attachment_Holo',_id,'HK416_GL_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416_Holo_SD_DZ'] call player_removeAttachment";
+ };
+ class RemoveSuppressor
+ {
+ text = $STR_ATTACHMENT_RMVE_Silencer;
+ script = "; ['Attachment_Sup556',_id,'HK416_GL_Holo_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416C_DZ : HK416_DZ
+{
+ model = "\RH_hk416\RH_hk416s.p3d";
+ picture = "\RH_hk416\inv\hk416s.paa";
+ handAnim[] = {"OFP2_ManSkeleton","\RH_hk416\Anim\hk416cqb_anim.rtm"};
+ displayName = $STR_DZ_WPN_HK416C_NAME;
+
+ class Attachments
+ {
+ Attachment_CCO = "HK416C_CCO_DZ";
+ Attachment_Holo = "HK416C_Holo_DZ";
+ Attachment_M203 = "HK416C_GL_DZ";
+ Attachment_ACOG = "HK416C_ACOG_DZ";
+ };
+};
+
+//Grenade launcher
+
+class HK416C_GL_DZ : HK416C_DZ
+{
+ model = "\RH_hk416\RH_hk416sgl.p3d";
+ picture = "\RH_hk416\inv\hk416sgl.paa";
+ displayName = $STR_DZ_WPN_HK416C_GL_NAME;
+
+ HK416_M203;
+
+ class Attachments
+ {
+ Attachment_CCO = "HK416C_GL_CCO_DZ";
+ Attachment_Holo = "HK416C_GL_Holo_DZ";
+ Attachment_ACOG = "HK416C_GL_ACOG_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416C_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+
+//CCO
+
+class HK416C_CCO_DZ : HK416C_DZ
+{
+ model = "\RH_hk416\RH_hk416saim.p3d";
+ picture = "\RH_hk416\inv\hk416saim.paa";
+ displayName = $STR_DZ_WPN_HK416C_CCO_NAME;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416C_GL_CCO_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveCCO
+ {
+ text = $STR_DZ_ATT_CCO_RMVE;
+ script = "; ['Attachment_CCO',_id,'HK416C_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//Grenade launcher
+
+class HK416C_GL_CCO_DZ : HK416C_GL_DZ
+{
+ model = "\RH_hk416\RH_hk416sglaim.p3d";
+ picture = "\RH_hk416\inv\hk416sglaim.paa";
+ displayName = $STR_DZ_WPN_HK416C_GL_CCO_NAME;
+
+ class Attachments {};
+
+ class ItemActions
+ {
+ class RemoveCCO
+ {
+ text = $STR_DZ_ATT_CCO_RMVE;
+ script = "; ['Attachment_CCO',_id,'HK416C_GL_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416C_CCO_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//Holo
+
+class HK416C_Holo_DZ : HK416C_DZ
+{
+ model = "\RH_hk416\RH_hk416seotech.p3d";
+ picture = "\RH_hk416\inv\hk416seotech.paa";
+ displayName = $STR_DZ_WPN_HK416C_HOLO_NAME;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416C_GL_Holo_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveHolo
+ {
+ text = $STR_DZ_ATT_HOLO_RMVE;
+ script = "; ['Attachment_Holo',_id,'HK416C_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+//Grenade launcher
+
+class HK416C_GL_Holo_DZ : HK416C_GL_DZ
+{
+ model = "\RH_hk416\RH_hk416sgleotech.p3d";
+ picture = "\RH_hk416\inv\Hk416sgleotech.paa";
+ displayName = $STR_DZ_WPN_HK416C_GL_HOLO_NAME;
+
+ class Attachments {};
+
+ class ItemActions
+ {
+ class RemoveHolo
+ {
+ text = $STR_DZ_ATT_HOLO_RMVE;
+ script = "; ['Attachment_Holo',_id,'HK416C_GL_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416C_Holo_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416C_ACOG_DZ : HK416C_DZ
+{
+ model = "\RH_hk416\RH_hk416sacog.p3d";
+ picture = "\RH_hk416\inv\hk416sacog.paa";
+ displayName = $STR_DZ_WPN_HK416C_ACOG_NAME;
+
+ HK416C_ACOG;
+
+ class Attachments
+ {
+ Attachment_M203 = "HK416C_GL_ACOG_DZ";
+ };
+
+ class ItemActions
+ {
+ class RemoveACOG
+ {
+ text = $STR_DZ_ATT_ACOG_RMVE;
+ script = "; ['Attachment_ACOG',_id,'HK416C_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+class HK416C_GL_ACOG_DZ : HK416C_GL_DZ
+{
+ model = "\RH_hk416\RH_hk416sglacog.p3d";
+ picture = "\RH_hk416\inv\hk416sglacog.paa";
+ displayName = $STR_DZ_WPN_HK416C_GL_ACOG_NAME;
+
+ HK416_M203;
+ HK416C_ACOG;
+
+ class Attachments {};
+
+ class ItemActions
+ {
+ class RemoveACOG
+ {
+ text = $STR_DZ_ATT_ACOG_RMVE;
+ script = "; ['Attachment_ACOG',_id,'HK416C_GL_DZ'] call player_removeAttachment";
+ };
+ class RemoveGL
+ {
+ text = $STR_DZ_ATT_M203_RMVE;
+ script = "; ['Attachment_M203',_id,'HK416C_ACOG_DZ'] call player_removeAttachment";
+ };
+ };
+};
+
+#undef HK416_M203
+#undef HK416C_ACOG
diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/M4A1.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/M4A1.hpp
index c5cfb551e..1559691ca 100644
--- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/M4A1.hpp
+++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/M4A1.hpp
@@ -168,8 +168,8 @@ class M4A1_SD_DZ : M4A1_AIM_SD_camo
magazines[] =
{
- 30Rnd_556x45_G36SD,
- 30Rnd_556x45_StanagSD
+ 30Rnd_556x45_StanagSD,
+ 30Rnd_556x45_G36SD
};
class Attachments
diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml
index 79366eccf..f06928d49 100644
--- a/SQF/dayz_code/stringtable.xml
+++ b/SQF/dayz_code/stringtable.xml
@@ -11892,7 +11892,7 @@
ACR ACOG
- ACR GL
+ ACR M203
ACR TWS
@@ -11901,16 +11901,16 @@
ACR TWS SD
- ACR TWS GL
+ ACR TWS M203
- ACR TWS GL SD
+ ACR TWS M203 SD
- ACR CCO GL
+ ACR CCO M203
- ACR Holo GL
+ ACR Holo M203
ACR SD
@@ -11922,35 +11922,35 @@
ACR ACOG SD
- ACR ACOG GL
+ ACR ACOG M203
- ACR ACOG GL SD
+ ACR ACOG M203 SD
- ACR GL SD
+ ACR M203 SD
- ACR CCO GL SD
+ ACR CCO M203 SD
ACR Holo SD
- ACR Holo GL SD
+ ACR Holo M203 SD
- ACR NV GL
+ ACR NV M203
- ACR NV GL SD
+ ACR NV M203 SD
ACR NV SD
ACR NV
-
+
@@ -12490,6 +12490,74 @@
Hangtompítós géppisztoly <br/> Kaliber: 5.7x28mm SD
+
+
+ HK416
+
+
+ HK416 SD
+ HK416 ПБС
+
+
+ HK416 M203
+
+
+ HK416 M203 SD
+ HK416 M203 ПБС
+
+
+ HK416 CCO
+
+
+ HK416 CCO SD
+ HK416 CCO ПБС
+
+
+ HK416 M203 CCO
+
+
+ HK416 M203 CCO SD
+ HK416 M203 CCO ПБС
+
+
+ HK416 Holo
+
+
+ HK416 Holo SD
+ HK416 Holo ПБС
+
+
+ HK416 M203 Holo
+
+
+ HK416 M203 Holo SD
+ HK416 M203 Holo ПБС
+
+
+ HK416C
+
+
+ HK416C M203
+
+
+ HK416C CCO
+
+
+ HK416C M203 CCO
+
+
+ HK416C Holo
+
+
+ HK416C M203 Holo
+
+
+ HK416C ACOG
+
+
+ HK416C M203 ACOG
+
+