Add military flashlight attachments

Vanilla commit:

b6ba294b70
This commit is contained in:
ebaydayz
2017-01-09 20:19:01 -05:00
parent 8ace89ff4d
commit 5c8ae96887
17 changed files with 1530 additions and 58 deletions

View File

@@ -9,6 +9,17 @@
brightness = 0.1;\
}
#define M4A1_MFLASHLIGHT class FlashLight\
{\
color[] = {0.9, 0.0, 0.0, 0.9};\
ambient[] = {0.1, 0.0, 0.0, 1.0};\
position = "flash dir";\
direction = "flash";\
angle = 30;\
scale[] = {1, 1, 0.5};\
brightness = 0.08;\
}
#define M4A1_M203 muzzles[] = {this, M203Muzzle};\
handAnim[]={"OFP2_ManSkeleton","\Ca\weapons\data\Anim\M16GL.rtm"}
@@ -59,13 +70,13 @@ class M4A1_DZ : M4A1
displayName = $STR_DZ_WPN_M4A1_NAME;
handAnim[]={"OFP2_ManSkeleton","\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};
/*
magazines[] =
/*magazines[] =
{
30Rnd_556x45_Stanag,
30Rnd_556x45_StanagSD
};
*/
};*/ //Allow use of G36 mags
class Attachments
{
Attachment_CCO = "M4A1_CCO_DZ";
@@ -74,6 +85,7 @@ class M4A1_DZ : M4A1
Attachment_M203 = "M4A1_GL_DZ";
Attachment_Sup556 = "M4A1_SD_DZ";
Attachment_FL = "M4A1_FL_DZ";
Attachment_MFL = "M4A1_MFL_DZ";
};
};
@@ -110,6 +122,39 @@ class M4A1_FL_DZ : M4A1_DZ
};
};
class M4A1_MFL_DZ : M4A1_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_MFL_NAME;
M4A1_MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "M4A1_CCO_MFL_DZ";
Attachment_Holo = "M4A1_Holo_MFL_DZ";
Attachment_ACOG = "M4A1_ACOG_MFL_DZ";
Attachment_M203 = "M4A1_GL_MFL_DZ";
Attachment_Sup556 = "M4A1_SD_MFL_DZ";
};
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_DZ'] call player_removeAttachment";
//script is formatted by ui_selectSlot to:
//"_id = 'M4A1_MFL_DZ' ; ['Attachment_MFL',_id,'M4A1_DZ'] call player_removeAttachment;"
//REGEX
//script = "\[Attachment_([_a-zA-Z0-9]+)\,[_a-zA-Z0-9]+\,([_a-zA-Z0-9]+)\] call player_removeAttachment";
//script = "; \['Attachment_$1',_id,'$2'\] call player_removeAttachment";
};
};
};
class M4A1_SD_DZ : M4A1_AIM_SD_camo
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_sd.p3d";
@@ -117,13 +162,13 @@ class M4A1_SD_DZ : M4A1_AIM_SD_camo
displayName = $STR_DZ_WPN_M4A1_SD_NAME;
handAnim[]={"OFP2_ManSkeleton","\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};
/*
magazines[] =
/*magazines[] =
{
30Rnd_556x45_StanagSD,
30Rnd_556x45_Stanag
};
*/
};*/ //Allow use of G36 mags
class Attachments
{
Attachment_CCO = "M4A1_CCO_SD_DZ";
@@ -131,6 +176,7 @@ class M4A1_SD_DZ : M4A1_AIM_SD_camo
Attachment_ACOG = "M4A1_ACOG_SD_DZ";
Attachment_M203 = "M4A1_GL_SD_DZ";
Attachment_FL = "M4A1_SD_FL_DZ";
Attachment_MFL = "M4A1_SD_MFL_DZ";
};
class ItemActions
@@ -174,6 +220,37 @@ class M4A1_SD_FL_DZ : M4A1_SD_DZ
};
};
class M4A1_SD_MFL_DZ : M4A1_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_SD_MFL_NAME;
M4A1_MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "M4A1_CCO_SD_MFL_DZ";
Attachment_Holo = "M4A1_Holo_SD_MFL_DZ";
Attachment_ACOG = "M4A1_ACOG_SD_MFL_DZ";
Attachment_M203 = "M4A1_GL_SD_MFL_DZ";
};
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_SD_DZ'] call player_removeAttachment";
};
};
};
//Grenade launcher
class M4A1_GL_DZ : M4A1_DZ
@@ -191,6 +268,7 @@ class M4A1_GL_DZ : M4A1_DZ
Attachment_ACOG = "M4A1_GL_ACOG_DZ";
Attachment_Sup556 = "M4A1_GL_SD_DZ";
Attachment_FL = "M4A1_GL_FL_DZ";
Attachment_MFL = "M4A1_GL_MFL_DZ";
};
class ItemActions
@@ -234,6 +312,37 @@ class M4A1_GL_FL_DZ : M4A1_GL_DZ
};
};
class M4A1_GL_MFL_DZ : M4A1_GL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_MFL_NAME;
M4A1_MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "M4A1_GL_CCO_MFL_DZ";
Attachment_Holo = "M4A1_GL_Holo_MFL_DZ";
Attachment_ACOG = "M4A1_GL_ACOG_MFL_DZ";
Attachment_Sup556 = "M4A1_GL_SD_MFL_DZ";
};
class ItemActions
{
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_DZ'] call player_removeAttachment";
};
};
};
class M4A1_GL_SD_DZ : M4A1_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_sd.p3d";
@@ -248,6 +357,7 @@ class M4A1_GL_SD_DZ : M4A1_SD_DZ
Attachment_Holo = "M4A1_GL_Holo_SD_DZ";
Attachment_ACOG = "M4A1_GL_ACOG_SD_DZ";
Attachment_FL = "M4A1_GL_SD_FL_DZ";
Attachment_MFL = "M4A1_GL_SD_MFL_DZ";
};
class ItemActions
@@ -300,6 +410,41 @@ class M4A1_GL_SD_FL_DZ : M4A1_GL_SD_DZ
};
};
class M4A1_GL_SD_MFL_DZ : M4A1_GL_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_SD_MFL_NAME;
M4A1_MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "M4A1_GL_CCO_SD_MFL_DZ";
Attachment_Holo = "M4A1_GL_Holo_SD_MFL_DZ";
Attachment_ACOG = "M4A1_GL_ACOG_SD_MFL_DZ";
};
class ItemActions
{
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_SD_DZ'] call player_removeAttachment";
};
};
};
//CCO
@@ -315,6 +460,7 @@ class M4A1_CCO_DZ : M4A1_DZ
Attachment_M203 = "M4A1_GL_CCO_DZ";
Attachment_Sup556 = "M4A1_CCO_SD_DZ";
Attachment_FL = "M4A1_CCO_FL_DZ";
Attachment_MFL = "M4A1_CCO_MFL_DZ";
};
class ItemActions
@@ -354,6 +500,33 @@ class M4A1_CCO_FL_DZ : M4A1_FL_DZ
};
};
class M4A1_CCO_MFL_DZ : M4A1_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_cco_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_cco_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_CCO_MFL_NAME;
class Attachments
{
Attachment_M203 = "M4A1_GL_CCO_MFL_DZ";
Attachment_Sup556 = "M4A1_CCO_SD_MFL_DZ";
};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M4A1_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_CCO_DZ'] call player_removeAttachment";
};
};
};
class M4A1_CCO_SD_DZ : M4A1_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_cco_sd.p3d";
@@ -364,6 +537,7 @@ class M4A1_CCO_SD_DZ : M4A1_SD_DZ
{
Attachment_M203 = "M4A1_GL_CCO_SD_DZ";
Attachment_FL = "M4A1_CCO_SD_FL_DZ";
Attachment_MFL = "M4A1_CCO_SD_MFL_DZ";
};
class ItemActions
@@ -412,6 +586,37 @@ class M4A1_CCO_SD_FL_DZ : M4A1_SD_FL_DZ
};
};
class M4A1_CCO_SD_MFL_DZ : M4A1_SD_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_cco_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_cco_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_CCO_SD_MFL_NAME;
class Attachments
{
Attachment_M203 = "M4A1_GL_CCO_SD_MFL_DZ";
};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M4A1_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_CCO_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_CCO_SD_DZ'] call player_removeAttachment";
};
};
};
//Grenade launcher
class M4A1_GL_CCO_DZ : M4A1_GL_DZ
@@ -424,6 +629,7 @@ class M4A1_GL_CCO_DZ : M4A1_GL_DZ
{
Attachment_Sup556 = "M4A1_GL_CCO_SD_DZ";
Attachment_FL = "M4A1_GL_CCO_FL_DZ";
Attachment_MFL = "M4A1_GL_CCO_MFL_DZ";
};
class ItemActions
@@ -472,6 +678,37 @@ class M4A1_GL_CCO_FL_DZ : M4A1_GL_FL_DZ
};
};
class M4A1_GL_CCO_MFL_DZ : M4A1_GL_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_cco_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_cco_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_CCO_MFL_NAME;
class Attachments
{
Attachment_Sup556 = "M4A1_GL_CCO_SD_MFL_DZ";
};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M4A1_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_CCO_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_CCO_DZ'] call player_removeAttachment";
};
};
};
class M4A1_GL_CCO_SD_DZ : M4A1_GL_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_cco_sd.p3d";
@@ -481,6 +718,7 @@ class M4A1_GL_CCO_SD_DZ : M4A1_GL_SD_DZ
class Attachments
{
Attachment_FL = "M4A1_GL_CCO_SD_FL_DZ";
Attachment_MFL = "M4A1_GL_CCO_SD_MFL_DZ";
};
class ItemActions
@@ -536,6 +774,40 @@ class M4A1_GL_CCO_SD_FL_DZ : M4A1_GL_SD_FL_DZ
};
};
class M4A1_GL_CCO_SD_MFL_DZ : M4A1_GL_SD_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_cco_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_cco_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_CCO_SD_MFL_NAME;
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M4A1_GL_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_CCO_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_GL_CCO_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_CCO_SD_DZ'] call player_removeAttachment";
};
};
};
//Holo
@@ -551,6 +823,7 @@ class M4A1_Holo_DZ : M4A1_DZ
Attachment_M203 = "M4A1_GL_Holo_DZ";
Attachment_Sup556 = "M4A1_Holo_SD_DZ";
Attachment_FL = "M4A1_Holo_FL_DZ";
Attachment_MFL = "M4A1_Holo_MFL_DZ";
};
class ItemActions
@@ -590,6 +863,33 @@ class M4A1_Holo_FL_DZ : M4A1_FL_DZ
};
};
class M4A1_Holo_MFL_DZ : M4A1_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_holo_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_holo_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_HOLO_MFL_NAME;
class Attachments
{
Attachment_M203 = "M4A1_GL_Holo_MFL_DZ";
Attachment_Sup556 = "M4A1_Holo_SD_MFL_DZ";
};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M4A1_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_Holo_DZ'] call player_removeAttachment";
};
};
};
class M4A1_Holo_SD_DZ : M4A1_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_holo_sd.p3d";
@@ -600,6 +900,7 @@ class M4A1_Holo_SD_DZ : M4A1_SD_DZ
{
Attachment_M203 = "M4A1_GL_Holo_SD_DZ";
Attachment_FL = "M4A1_Holo_SD_FL_DZ";
Attachment_MFL = "M4A1_Holo_SD_MFL_DZ";
};
class ItemActions
@@ -648,6 +949,37 @@ class M4A1_Holo_SD_FL_DZ : M4A1_SD_FL_DZ
};
};
class M4A1_Holo_SD_MFL_DZ : M4A1_SD_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_holo_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_holo_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_HOLO_SD_MFL_NAME;
class Attachments
{
Attachment_M203 = "M4A1_GL_Holo_SD_MFL_DZ";
};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M4A1_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_Holo_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_Holo_SD_DZ'] call player_removeAttachment";
};
};
};
//Grenade launcher
class M4A1_GL_Holo_DZ : M4A1_GL_DZ
@@ -660,6 +992,7 @@ class M4A1_GL_Holo_DZ : M4A1_GL_DZ
{
Attachment_Sup556 = "M4A1_GL_Holo_SD_DZ";
Attachment_FL = "M4A1_GL_Holo_FL_DZ";
Attachment_MFL = "M4A1_GL_Holo_MFL_DZ";
};
class ItemActions
@@ -708,6 +1041,37 @@ class M4A1_GL_Holo_FL_DZ : M4A1_GL_FL_DZ
};
};
class M4A1_GL_Holo_MFL_DZ : M4A1_GL_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_holo_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_holo_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_HOLO_MFL_NAME;
class Attachments
{
Attachment_Sup556 = "M4A1_GL_Holo_SD_MFL_DZ";
};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M4A1_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_Holo_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_Holo_DZ'] call player_removeAttachment";
};
};
};
class M4A1_GL_Holo_SD_DZ : M4A1_GL_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_holo_sd.p3d";
@@ -717,6 +1081,7 @@ class M4A1_GL_Holo_SD_DZ : M4A1_GL_SD_DZ
class Attachments
{
Attachment_FL = "M4A1_GL_Holo_SD_FL_DZ";
Attachment_MFL = "M4A1_GL_Holo_SD_MFL_DZ";
};
class ItemActions
@@ -772,6 +1137,39 @@ class M4A1_GL_Holo_SD_FL_DZ : M4A1_GL_SD_FL_DZ
};
};
class M4A1_GL_Holo_SD_MFL_DZ : M4A1_GL_SD_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_holo_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_holo_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_HOLO_SD_MFL_NAME;
class Attachments {};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M4A1_GL_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_Holo_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_GL_Holo_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_Holo_SD_DZ'] call player_removeAttachment";
};
};
};
//ACOG
@@ -786,9 +1184,10 @@ class M4A1_ACOG_DZ : M4A1_DZ
class Attachments
{
Attachment_M203 = M4A1_GL_ACOG_DZ;
Attachment_Sup556 = M4A1_ACOG_SD_DZ;
Attachment_FL = M4A1_ACOG_FL_DZ;
Attachment_M203 = "M4A1_GL_ACOG_DZ";
Attachment_Sup556 = "M4A1_ACOG_SD_DZ";
Attachment_FL = "M4A1_ACOG_FL_DZ";
Attachment_MFL = "M4A1_ACOG_MFL_DZ";
};
class ItemActions
@@ -811,8 +1210,8 @@ class M4A1_ACOG_FL_DZ : M4A1_FL_DZ
class Attachments
{
Attachment_M203 = M4A1_GL_ACOG_FL_DZ;
Attachment_Sup556 = M4A1_ACOG_SD_FL_DZ;
Attachment_M203 = "M4A1_GL_ACOG_FL_DZ";
Attachment_Sup556 = "M4A1_ACOG_SD_FL_DZ";
};
class ItemActions
@@ -830,6 +1229,35 @@ class M4A1_ACOG_FL_DZ : M4A1_FL_DZ
};
};
class M4A1_ACOG_MFL_DZ : M4A1_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_acog_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_acog_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_ACOG_MFL_NAME;
M4A1_ACOG;
class Attachments
{
Attachment_M203 = "M4A1_GL_ACOG_MFL_DZ";
Attachment_Sup556 = "M4A1_ACOG_SD_MFL_DZ";
};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'M4A1_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_ACOG_DZ'] call player_removeAttachment";
};
};
};
class M4A1_ACOG_SD_DZ : M4A1_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_acog_sd.p3d";
@@ -840,8 +1268,9 @@ class M4A1_ACOG_SD_DZ : M4A1_SD_DZ
class Attachments
{
Attachment_M203 = M4A1_GL_ACOG_SD_DZ;
Attachment_FL = M4A1_ACOG_SD_FL_DZ;
Attachment_M203 = "M4A1_GL_ACOG_SD_DZ";
Attachment_FL = "M4A1_ACOG_SD_FL_DZ";
Attachment_MFL = "M4A1_ACOG_SD_MFL_DZ";
};
class ItemActions
@@ -869,7 +1298,7 @@ class M4A1_ACOG_SD_FL_DZ : M4A1_SD_FL_DZ
class Attachments
{
Attachment_M203 = M4A1_GL_ACOG_SD_FL_DZ;
Attachment_M203 = "M4A1_GL_ACOG_SD_FL_DZ";
};
class ItemActions
@@ -892,6 +1321,39 @@ class M4A1_ACOG_SD_FL_DZ : M4A1_SD_FL_DZ
};
};
class M4A1_ACOG_SD_MFL_DZ : M4A1_SD_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_acog_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_acog_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_ACOG_SD_MFL_NAME;
M4A1_ACOG;
class Attachments
{
Attachment_M203 = "M4A1_GL_ACOG_SD_MFL_DZ";
};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'M4A1_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_ACOG_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_ACOG_SD_DZ'] call player_removeAttachment";
};
};
};
//Grenade launcher
class M4A1_GL_ACOG_DZ : M4A1_GL_DZ
@@ -904,8 +1366,9 @@ class M4A1_GL_ACOG_DZ : M4A1_GL_DZ
class Attachments
{
Attachment_Sup556 = M4A1_GL_ACOG_SD_DZ;
Attachment_FL = M4A1_GL_ACOG_FL_DZ;
Attachment_Sup556 = "M4A1_GL_ACOG_SD_DZ";
Attachment_FL = "M4A1_GL_ACOG_FL_DZ";
Attachment_MFL = "M4A1_GL_ACOG_MFL_DZ";
};
class ItemActions
@@ -933,7 +1396,7 @@ class M4A1_GL_ACOG_FL_DZ : M4A1_GL_FL_DZ
class Attachments
{
Attachment_Sup556 = M4A1_GL_ACOG_SD_FL_DZ;
Attachment_Sup556 = "M4A1_GL_ACOG_SD_FL_DZ";
};
class ItemActions
@@ -956,6 +1419,39 @@ class M4A1_GL_ACOG_FL_DZ : M4A1_GL_FL_DZ
};
};
class M4A1_GL_ACOG_MFL_DZ : M4A1_GL_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_acog_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_acog_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_ACOG_MFL_NAME;
M4A1_ACOG;
class Attachments
{
Attachment_Sup556 = "M4A1_GL_ACOG_SD_MFL_DZ";
};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'M4A1_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_ACOG_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_ACOG_DZ'] call player_removeAttachment";
};
};
};
class M4A1_GL_ACOG_SD_DZ : M4A1_GL_SD_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_acog_sd.p3d";
@@ -966,7 +1462,8 @@ class M4A1_GL_ACOG_SD_DZ : M4A1_GL_SD_DZ
class Attachments
{
Attachment_FL = M4A1_GL_ACOG_SD_FL_DZ;
Attachment_FL = "M4A1_GL_ACOG_SD_FL_DZ";
Attachment_MFL = "M4A1_GL_ACOG_SD_MFL_DZ";
};
class ItemActions
@@ -1024,6 +1521,42 @@ class M4A1_GL_ACOG_SD_FL_DZ : M4A1_GL_SD_FL_DZ
};
};
class M4A1_GL_ACOG_SD_MFL_DZ : M4A1_GL_SD_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m4a1\m4a1_gl_acog_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m4a1\data\w_m4a1_gl_acog_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_M4A1_GL_ACOG_SD_MFL_NAME;
M4A1_ACOG;
class Attachments {};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'M4A1_GL_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M4A1_ACOG_SD_MFL_DZ'] call player_removeAttachment";
};
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup556',_id,'M4A1_GL_ACOG_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M4A1_GL_ACOG_SD_DZ'] call player_removeAttachment";
};
};
};
#undef M4A1_FLASHLIGHT
#undef M4A1_MFLASHLIGHT
#undef M4A1_M203
#undef M4A1_ACOG
#undef M4A1_ACOG