Add DZ version for a few G36s

- move G36 camo with SD attachment support to hero and bandit
- also add MG36 DZ version
- add back G36A SD with attachment support
This commit is contained in:
A Man
2020-02-25 21:35:06 +01:00
parent 2641b4fe77
commit 3f774ee9d4
9 changed files with 104 additions and 19 deletions

View File

@@ -74,6 +74,7 @@ class CfgWeapons
};
#include "Rifles\G36.hpp"
#include "Rifles\G36C.hpp"
#include "Rifles\MG36.hpp"
class M4A1;
class M4A1_AIM_SD_camo;

View File

@@ -188,21 +188,24 @@ class G36A_Camo_DZ : G36K_Camo_DZ
dispersion = 0.0007;
};
class Attachments {};
class Attachments
{
Attachment_Sup556 = "G36A_Camo_SD_DZ";
};
};
/*class G36A_Camo_SD_DZ : G36K_Camo_SD_DZ
class G36A_Camo_SD_DZ : G36K_Camo_SD_DZ
{
model = "z\addons\dayz_communityweapons\g36\g36a_camo_sd";
picture = "\z\addons\dayz_communityweapons\g36\data\w_g36a_camo_sd_ca.paa";
displayName = $STR_DZ_WPN_G36K_CAMO_SD_NAME;
picture = "\dayz_epoch_c\icons\weapons\G36A_Camo_SD.paa";
displayName = $STR_DZ_WPN_G36A_CAMO_SD_NAME;
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'G36K_Camo_DZ'] call player_removeAttachment";
script = "; ['Attachment_Sup556',_id,'G36A_Camo_DZ'] call player_removeAttachment";
};
};
};*/
};

View File

@@ -223,4 +223,31 @@ class G36C_ACOG_SD_DZ : G36C_SD_DZ
};
};
class G36C_camo;
class G36C_Camo_DZ : G36C_camo
{
displayName = $STR_DZ_WPN_G36C_CAMO_NAME;
magazines[] =
{
30Rnd_556x45_G36,
100Rnd_556x45_BetaCMag,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
};
class G36_C_SD_camo;
class G36C_Camo_Holo_SD_DZ : G36_C_SD_camo
{
displayName = $STR_DZ_WPN_G36C_CAMO_HOLO_SD_NAME;
magazines[] =
{
30Rnd_556x45_G36SD,
30Rnd_556x45_StanagSD
};
};
#undef G36C_ACOG

View File

@@ -0,0 +1,25 @@
class MG36;
class MG36_DZ: MG36 {
displayName = $STR_DZ_WPN_MG36_NAME;
magazines[] =
{
100Rnd_556x45_BetaCMag,
30Rnd_556x45_G36,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
};
class MG36_camo;
class MG36_Camo_DZ: MG36_camo {
displayName = $STR_DZ_WPN_MG36_CAMO_NAME;
magazines[] =
{
100Rnd_556x45_BetaCMag,
30Rnd_556x45_G36,
30Rnd_556x45_Stanag,
20Rnd_556x45_Stanag,
60Rnd_556x45_Stanag_tape_ice_DZE
};
};