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

@@ -16,6 +16,7 @@ class G17_DZ : glock17_EP1
{
Attachment_Sup9 = "G17_SD_DZ";
Attachment_FL_Pist = "G17_FL_DZ";
Attachment_MFL_Pist = "G17_MFL_DZ";
};
};
@@ -51,6 +52,38 @@ class G17_FL_DZ : G17_DZ
};
};
class G17_MFL_DZ : G17_DZ
{
model = "z\addons\dayz_communityweapons\g17\g17_fl.p3d";
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_fl_ca.paa";
displayName = $STR_DZ_WPN_G17_MFL_NAME;
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;
};
class Attachments
{
Attachment_Sup9 = "G17_SD_MFL_DZ";
};
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_PST_RMVE;
script = "; ['Attachment_MFL_Pist',_id,'G17_DZ'] call player_removeAttachment";
};
};
};
class G17_SD_DZ : M9SD
{
model = "z\addons\dayz_communityweapons\g17\g17_sd.p3d";
@@ -74,6 +107,7 @@ class G17_SD_DZ : M9SD
class Attachments
{
Attachment_FL_Pist = "G17_SD_FL_DZ";
Attachment_MFL_Pist = "G17_SD_MFL_DZ";
};
class ItemActions
@@ -119,4 +153,39 @@ class G17_SD_FL_DZ : G17_SD_DZ
script = "; ['Attachment_FL_Pist',_id,'G17_SD_DZ'] call player_removeAttachment";
};
};
};
};
class G17_SD_MFL_DZ : G17_SD_DZ
{
model = "z\addons\dayz_communityweapons\g17\g17_sd_fl.p3d";
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_fl_ca.paa";
displayName = $STR_DZ_WPN_G17_SD_MFL_NAME;
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;
};
class Attachments {};
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup9',_id,'G17_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_PST_RMVE;
script = "; ['Attachment_MFL_Pist',_id,'G17_SD_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -9,6 +9,17 @@
brightness = 0.1;\
};
#define CROSSBOW_MFLASHLIGHT class FlashLight\
{\
color[] = {0.9, 0.0, 0.0, 0.9};\
ambient[] = {0.1, 0.0, 0.0, 1.0};\
position = "fl_start";\
direction = "fl_dir";\
angle = 40;\
scale[] = {1, 1, 0.5};\
brightness = 0.08;\
};
class Crossbow_Base : Rifle
@@ -53,6 +64,7 @@ class Crossbow_DZ : Crossbow_Base
{
Attachment_CCO = "Crossbow_CCO_DZ";
Attachment_FL = "Crossbow_FL_DZ";
Attachment_MFL = "Crossbow_MFL_DZ";
Attachment_SCOPED = "Crossbow_Scope_DZ";
};
};
@@ -81,6 +93,30 @@ class Crossbow_FL_DZ : Crossbow_DZ
};
};
class Crossbow_MFL_DZ : Crossbow_DZ
{
model = "z\addons\community_crossbow\models\crossbow_fl.p3d";
picture = "\z\addons\community_crossbow\icons\crossbow_fl.paa";
displayName = $STR_DZ_WPN_CROSSBOW_MFL_NAME;
CROSSBOW_MFLASHLIGHT
class Attachments
{
Attachment_CCO = "Crossbow_CCO_MFL_DZ";
Attachment_SCOPED = "Crossbow_Scope_MFL_DZ";
};
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Crossbow_DZ'] call player_removeAttachment";
};
};
};
/*CCO*/
@@ -94,6 +130,7 @@ class Crossbow_CCO_DZ : Crossbow_DZ
class Attachments
{
Attachment_FL = "Crossbow_CCO_FL_DZ";
Attachment_MFL = "Crossbow_CCO_MFL_DZ";
};
class ItemActions
@@ -132,6 +169,32 @@ class Crossbow_CCO_FL_DZ : Crossbow_CCO_DZ
};
};
class Crossbow_CCO_MFL_DZ : Crossbow_CCO_DZ
{
model = "z\addons\community_crossbow\models\crossbow_cco_fl.p3d";
picture = "\z\addons\community_crossbow\icons\crossbow_scoped.paa";
displayName = $STR_DZ_WPN_CROSSBOW_CCO_MFL_NAME;
CROSSBOW_MFLASHLIGHT
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'Crossbow_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Crossbow_CCO_DZ'] call player_removeAttachment";
};
};
};
/*Scope*/
@@ -152,6 +215,7 @@ class Crossbow_Scope_DZ : Crossbow_DZ
class Attachments
{
Attachment_FL = "Crossbow_Scope_FL_DZ";
Attachment_MFL = "Crossbow_Scope_MFL_DZ";
};
class ItemActions
@@ -190,4 +254,32 @@ class Crossbow_Scope_FL_DZ : Crossbow_Scope_DZ
};
};
#undef CROSSBOW_FLASHLIGHT
class Crossbow_Scope_MFL_DZ : Crossbow_Scope_DZ
{
model = "z\addons\community_crossbow\models\crossbow_scoped_fl.p3d";
picture = "\z\addons\community_crossbow\icons\crossbow_scoped_fl.paa";
displayName = $STR_DZ_WPN_CROSSBOW_SCOPE_MFL_NAME;
CROSSBOW_MFLASHLIGHT
class Attachments {};
class ItemActions
{
class RemoveScope
{
text = $STR_DZ_ATT_PU_RMVE;
script = "; ['Attachment_SCOPED',_id,'Crossbow_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Crossbow_Scope_DZ'] call player_removeAttachment";
};
};
};
#undef CROSSBOW_FLASHLIGHT
#undef CROSSBOW_MFLASHLIGHT

View File

@@ -9,6 +9,17 @@
brightness = 0.1;\
}
#define M16A4_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 M16A4_ACOG modelOptics = "\Ca\weapons_E\SCAR\ACOG_TA31_optic_4x.p3d";\
class OpticsModes\
{\
@@ -53,13 +64,13 @@ class M16A4_DZ : M16A2
model = "z\addons\dayz_communityweapons\m16a4\m16a4.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_ca.paa";
displayName = $STR_DZ_WPN_M16A4;
/*
magazines[] =
/*magazines[] =
{
30Rnd_556x45_Stanag,
30Rnd_556x45_StanagSD
};
*/
};*/ //Allow use of G36 mags
class Attachments
{
Attachment_CCO = "M16A4_CCO_DZ";
@@ -67,6 +78,7 @@ class M16A4_DZ : M16A2
Attachment_ACOG = "M16A4_ACOG_DZ";
Attachment_M203 = "M16A4_GL_DZ";
Attachment_FL = "M16A4_FL_DZ";
Attachment_MFL = "M16A4_MFL_DZ";
};
};
@@ -96,6 +108,32 @@ class M16A4_FL_DZ : M16A4_DZ
};
};
class M16A4_MFL_DZ : M16A4_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_MFL;
M16A4_MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "M16A4_CCO_MFL_DZ";
Attachment_Holo = "M16A4_Holo_MFL_DZ";
Attachment_ACOG = "M16A4_ACOG_MFL_DZ";
Attachment_M203 = "M16A4_GL_MFL_DZ";
};
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_DZ'] call player_removeAttachment";
};
};
};
class M16A4_GL_DZ : M16A4_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl.p3d";
@@ -111,6 +149,7 @@ class M16A4_GL_DZ : M16A4_DZ
Attachment_Holo = "M16A4_GL_Holo_DZ";
Attachment_ACOG = "M16A4_GL_ACOG_DZ";
Attachment_FL = "M16A4_GL_FL_DZ";
Attachment_MFL = "M16A4_GL_MFL_DZ";
};
class ItemActions
@@ -153,6 +192,36 @@ class M16A4_GL_FL_DZ : M16A4_GL_DZ
};
};
class M16A4_GL_MFL_DZ : M16A4_GL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_gl_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_GL_MFL;
M16A4_MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "M16A4_GL_CCO_MFL_DZ";
Attachment_Holo = "M16A4_GL_Holo_MFL_DZ";
Attachment_ACOG = "M16A4_GL_ACOG_MFL_DZ";
};
class ItemActions
{
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M16A4_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_GL_DZ'] call player_removeAttachment";
};
};
};
//CCO
@@ -166,6 +235,7 @@ class M16A4_CCO_DZ : M16A4_DZ
{
Attachment_M203 = "M16A4_GL_CCO_DZ";
Attachment_FL = "M16A4_CCO_FL_DZ";
Attachment_MFL = "M16A4_CCO_MFL_DZ";
};
class ItemActions
@@ -204,6 +274,32 @@ class M16A4_CCO_FL_DZ : M16A4_FL_DZ
};
};
class M16A4_CCO_MFL_DZ : M16A4_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_cco_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_cco_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_CCO_MFL;
class Attachments
{
Attachment_M203 = "M16A4_GL_CCO_MFL_DZ";
};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M16A4_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_CCO_DZ'] call player_removeAttachment";
};
};
};
class M16A4_GL_CCO_DZ : M16A4_GL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_cco.p3d";
@@ -213,6 +309,7 @@ class M16A4_GL_CCO_DZ : M16A4_GL_DZ
class Attachments
{
Attachment_FL = "M16A4_GL_CCO_FL_DZ";
Attachment_MFL = "M16A4_GL_CCO_MFL_DZ";
};
class ItemActions
@@ -258,6 +355,34 @@ class M16A4_GL_CCO_FL_DZ : M16A4_GL_FL_DZ
};
};
class M16A4_GL_CCO_MFL_DZ : M16A4_GL_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_cco_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_gl_cco_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_GL_CCO_MFL;
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'M16A4_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M16A4_CCO_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_GL_CCO_DZ'] call player_removeAttachment";
};
};
};
//Holo
@@ -271,6 +396,7 @@ class M16A4_Holo_DZ : M16A4_DZ
{
Attachment_M203 = "M16A4_GL_Holo_DZ";
Attachment_FL = "M16A4_Holo_FL_DZ";
Attachment_MFL = "M16A4_Holo_MFL_DZ";
};
class ItemActions
@@ -309,6 +435,32 @@ class M16A4_Holo_FL_DZ : M16A4_FL_DZ
};
};
class M16A4_Holo_MFL_DZ : M16A4_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_holo_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_holo_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_HOLO_MFL;
class Attachments
{
Attachment_M203 = "M16A4_GL_Holo_MFL_DZ";
};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M16A4_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_Holo_DZ'] call player_removeAttachment";
};
};
};
class M16A4_GL_Holo_DZ : M16A4_GL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_holo.p3d";
@@ -318,6 +470,7 @@ class M16A4_GL_Holo_DZ : M16A4_GL_DZ
class Attachments
{
Attachment_FL = "M16A4_GL_Holo_FL_DZ";
Attachment_MFL = "M16A4_GL_Holo_MFL_DZ";
};
class ItemActions
@@ -363,6 +516,34 @@ class M16A4_GL_Holo_FL_DZ : M16A4_GL_FL_DZ
};
};
class M16A4_GL_Holo_MFL_DZ : M16A4_GL_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_holo_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_gl_holo_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_GL_HOLO_MFL;
class Attachments {};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'M16A4_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M16A4_Holo_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_GL_Holo_DZ'] call player_removeAttachment";
};
};
};
//ACOG
@@ -377,8 +558,9 @@ class M16A4_ACOG_DZ : M16A4_DZ
class Attachments
{
Attachment_M203 = M16A4_GL_ACOG_DZ;
Attachment_FL = M16A4_ACOG_FL_DZ;
Attachment_M203 = "M16A4_GL_ACOG_DZ";
Attachment_FL = "M16A4_ACOG_FL_DZ";
Attachment_MFL = "M16A4_ACOG_MFL_DZ";
};
class ItemActions
@@ -401,7 +583,7 @@ class M16A4_ACOG_FL_DZ : M16A4_FL_DZ
class Attachments
{
Attachment_M203 = M16A4_GL_ACOG_FL_DZ;
Attachment_M203 = "M16A4_GL_ACOG_FL_DZ";
};
class ItemActions
@@ -419,6 +601,34 @@ class M16A4_ACOG_FL_DZ : M16A4_FL_DZ
};
};
class M16A4_ACOG_MFL_DZ : M16A4_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_acog_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_acog_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_ACOG_MFL_NAME;
M16A4_ACOG;
class Attachments
{
Attachment_M203 = "M16A4_GL_ACOG_MFL_DZ";
};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'M16A4_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_ACOG_DZ'] call player_removeAttachment";
};
};
};
class M16A4_GL_ACOG_DZ : M16A4_GL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_acog.p3d";
@@ -429,7 +639,8 @@ class M16A4_GL_ACOG_DZ : M16A4_GL_DZ
class Attachments
{
Attachment_FL = M16A4_GL_ACOG_FL_DZ;
Attachment_FL = "M16A4_GL_ACOG_FL_DZ";
Attachment_MFL = "M16A4_GL_ACOG_MFL_DZ";
};
class ItemActions
@@ -475,4 +686,34 @@ class M16A4_GL_ACOG_FL_DZ : M16A4_GL_FL_DZ
script = "; ['Attachment_FL',_id,'M16A4_GL_ACOG_DZ'] call player_removeAttachment";
};
};
};
};
class M16A4_GL_ACOG_MFL_DZ : M16A4_GL_MFL_DZ
{
model = "z\addons\dayz_communityweapons\m16a4\m16a4_gl_acog_fl.p3d";
picture = "\z\addons\dayz_communityweapons\m16a4\data\w_m16a4_gl_acog_fl_ca.paa";
displayName = $STR_DZ_WPN_M16A4_GL_ACOG_MFL_NAME;
M16A4_ACOG;
class Attachments {};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'M16A4_GL_MFL_DZ'] call player_removeAttachment";
};
class RemoveGL
{
text = $STR_DZ_ATT_M203_RMVE;
script = "; ['Attachment_M203',_id,'M16A4_ACOG_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'M16A4_GL_ACOG_DZ'] call player_removeAttachment";
};
};
};

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

View File

@@ -9,6 +9,17 @@
brightness = 0.1;\
};
#define MOSIN_MFLASHLIGHT class FlashLight\
{\
color[] = {0.9, 0.0, 0.0, 0.9};\
ambient[] = {0.1, 0.0, 0.0, 1.0};\
position = "fl_start";\
direction = "fl_dir";\
angle = 40;\
scale[] = {1, 1, 0.5};\
brightness = 0.08;\
};
#define MOSIN_BELT magazineReloadTime = 4.7;
#define MOSIN_BROKEN magazines[] = {};
@@ -57,6 +68,7 @@ class Mosin_DZ : Mosin_Base
{
Attachment_SCOPED = "Mosin_PU_DZ";
Attachment_FL = "Mosin_FL_DZ";
Attachment_MFL = "Mosin_MFL_DZ";
Attachment_BELT = "Mosin_Belt_DZ";
};
};
@@ -91,6 +103,31 @@ class Mosin_FL_DZ : Mosin_DZ
};
};
class Mosin_MFL_DZ : Mosin_DZ
{
model = "z\addons\dayz_communityweapons\models\mosin_nagant\mosin_1891_FL_animated";
picture = "\z\addons\dayz_communityweapons\models\mosin_nagant\images\1891_FL.paa";
displayName = $STR_DZ_WPN_MOSIN_MFL_NAME;
descriptionShort = $STR_DZ_WPN_MOSIN_DESC;
MOSIN_MFLASHLIGHT
class Attachments
{
Attachment_SCOPED = "Mosin_PU_MFL_DZ";
Attachment_BELT = "Mosin_Belt_MFL_DZ";
};
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Mosin_DZ'] call player_removeAttachment";
};
};
};
class Mosin_Belt_DZ : Mosin_DZ
{
model = "z\addons\dayz_communityweapons\models\mosin_nagant\mosin_1891_belt_animated";
@@ -104,6 +141,7 @@ class Mosin_Belt_DZ : Mosin_DZ
{
Attachment_SCOPED = "Mosin_PU_Belt_DZ";
Attachment_FL = "Mosin_Belt_FL_DZ";
Attachment_MFL = "Mosin_Belt_MFL_DZ";
};
class ItemActions
@@ -146,6 +184,36 @@ class Mosin_Belt_FL_DZ : Mosin_FL_DZ
};
};
class Mosin_Belt_MFL_DZ : Mosin_MFL_DZ
{
model = "z\addons\dayz_communityweapons\models\mosin_nagant\mosin_1891_belt_FL_animated";
picture = "\z\addons\dayz_communityweapons\models\mosin_nagant\images\1891B_FL.paa";
displayName = $STR_DZ_WPN_MOSIN_BELT_MFL_NAME;
descriptionShort = $STR_DZ_WPN_MOSIN_DESC;
MOSIN_BELT
class Attachments
{
Attachment_SCOPED = "Mosin_PU_Belt_MFL_DZ";
};
class ItemActions
{
class RemoveBelt
{
text = $STR_DZ_ATT_BELT_RMVE;
script = "; ['Attachment_BELT',_id,'Mosin_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Mosin_Belt_DZ'] call player_removeAttachment";
};
};
};
/* PU Scope */
@@ -171,6 +239,7 @@ class Mosin_PU_DZ : Mosin_Base
class Attachments
{
Attachment_FL = "Mosin_PU_FL_DZ";
Attachment_MFL = "Mosin_PU_MFL_DZ";
Attachment_BELT = "Mosin_PU_Belt_DZ";
};
@@ -214,6 +283,36 @@ class Mosin_PU_FL_DZ : Mosin_PU_DZ
};
};
class Mosin_PU_MFL_DZ : Mosin_PU_DZ
{
model = "z\addons\dayz_communityweapons\models\mosin_nagant\mosin_1891_scoped_FL_animated";
picture = "\z\addons\dayz_communityweapons\models\mosin_nagant\images\1891S_FL.paa";
displayName = $STR_DZ_WPN_MOSIN_PU_MFL_NAME;
descriptionShort = $STR_DZ_WPN_MOSIN_DESC;
MOSIN_MFLASHLIGHT
class Attachments
{
Attachment_BELT = "Mosin_PU_Belt_MFL_DZ";
};
class ItemActions
{
class RemoveScope
{
text = $STR_DZ_ATT_PU_RMVE;
script = "; ['Attachment_SCOPED',_id,'Mosin_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Mosin_PU_DZ'] call player_removeAttachment";
};
};
};
class Mosin_PU_Belt_DZ : Mosin_PU_DZ
{
model = "z\addons\dayz_communityweapons\models\mosin_nagant\mosin_1891_belt_scoped_animated";
@@ -226,6 +325,7 @@ class Mosin_PU_Belt_DZ : Mosin_PU_DZ
class Attachments
{
Attachment_FL = "Mosin_PU_Belt_FL_DZ";
Attachment_MFL = "Mosin_PU_Belt_MFL_DZ";
};
class ItemActions
@@ -277,5 +377,39 @@ class Mosin_PU_Belt_FL_DZ : Mosin_PU_FL_DZ
};
};
class Mosin_PU_Belt_MFL_DZ : Mosin_PU_MFL_DZ
{
model = "z\addons\dayz_communityweapons\models\mosin_nagant\mosin_1891_belt_scoped_FL_animated";
picture = "\z\addons\dayz_communityweapons\models\mosin_nagant\images\1891SB_FL.paa";
displayName = $STR_DZ_WPN_MOSIN_PU_BELT_MFL_NAME;
descriptionShort = $STR_DZ_WPN_MOSIN_DESC;
MOSIN_BELT
class Attachments {};
class ItemActions
{
class RemoveScope
{
text = $STR_DZ_ATT_PU_RMVE;
script = "; ['Attachment_SCOPED',_id,'Mosin_Belt_MFL_DZ'] call player_removeAttachment";
};
class RemoveBelt
{
text = $STR_DZ_ATT_BELT_RMVE;
script = "; ['Attachment_BELT',_id,'Mosin_PU_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Mosin_PU_Belt_DZ'] call player_removeAttachment";
};
};
};
#undef MOSIN_FLASHLIGHT
#undef MOSIN_BELT
#undef MOSIN_MFLASHLIGHT
#undef MOSIN_BELT

View File

@@ -9,6 +9,17 @@
brightness = 0.1;\
}
#define R870_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;\
}
class Remington870_DZ : Rifle
{
scope = public;
@@ -49,6 +60,7 @@ class Remington870_DZ : Rifle
class Attachments
{
Attachment_FL = "Remington870_FL_DZ";
Attachment_MFL = "Remington870_MFL_DZ";
};
};
@@ -68,4 +80,22 @@ class Remington870_FL_DZ : Remington870_DZ
script = "; ['Attachment_FL',_id,'Remington870_DZ'] call player_removeAttachment";
};
};
};
};
class Remington870_MFL_DZ : Remington870_DZ
{
model = "\dayz_weapons\models\Remington870_lamp.p3d";
displayname = $STR_DZ_WPN_R870_MFL_NAME;
descriptionShort = $STR_DZ_WPN_R870_FL_DESC;
R870_MFLASHLIGHT;
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'Remington870_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -9,6 +9,17 @@
brightness = 0.1;\
}
#define 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;\
}
class SA58_DZ : Sa58V_EP1
{
model = "z\addons\dayz_communityweapons\sa58\sa58.p3d";
@@ -24,7 +35,7 @@ class SA58_DZ : Sa58V_EP1
class Attachments
{
Attachment_SA58RIS = SA58_RIS_DZ;
Attachment_SA58RIS = "SA58_RIS_DZ";
};
};
@@ -36,10 +47,11 @@ class SA58_RIS_DZ : SA58_DZ
class Attachments
{
Attachment_CCO = SA58_CCO_DZ;
Attachment_Holo = SA58_Holo_DZ;
Attachment_ACOG = SA58_ACOG_DZ;
Attachment_FL = SA58_RIS_FL_DZ;
Attachment_CCO = "SA58_CCO_DZ";
Attachment_Holo = "SA58_Holo_DZ";
Attachment_ACOG = "SA58_ACOG_DZ";
Attachment_FL = "SA58_RIS_FL_DZ";
Attachment_MFL = "SA58_RIS_MFL_DZ";
};
};
@@ -53,9 +65,9 @@ class SA58_RIS_FL_DZ : SA58_RIS_DZ
class Attachments
{
Attachment_CCO = SA58_CCO_FL_DZ;
Attachment_Holo = SA58_Holo_FL_DZ;
Attachment_ACOG = SA58_ACOG_FL_DZ;
Attachment_CCO = "SA58_CCO_FL_DZ";
Attachment_Holo = "SA58_Holo_FL_DZ";
Attachment_ACOG = "SA58_ACOG_FL_DZ";
};
class ItemActions
@@ -68,6 +80,31 @@ class SA58_RIS_FL_DZ : SA58_RIS_DZ
};
};
class SA58_RIS_MFL_DZ : SA58_RIS_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_ris_fl.p3d";
picture = "\z\addons\dayz_communityweapons\sa58\data\w_sa58_ris_fl_ca.paa";
displayName = $STR_DZ_WPN_SA58_RIS_MFL_NAME;
MFLASHLIGHT;
class Attachments
{
Attachment_CCO = "SA58_CCO_MFL_DZ";
Attachment_Holo = "SA58_Holo_MFL_DZ";
Attachment_ACOG = "SA58_ACOG_MFL_DZ";
};
class ItemActions
{
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'SA58_RIS_DZ'] call player_removeAttachment";
};
};
};
class SA58_CCO_DZ : SA58_RIS_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_cco.p3d";
@@ -82,7 +119,8 @@ class SA58_CCO_DZ : SA58_RIS_DZ
class Attachments
{
Attachment_FL = SA58_CCO_FL_DZ;
Attachment_FL = "SA58_CCO_FL_DZ";
Attachment_MFL = "SA58_CCO_MFL_DZ";
};
class ItemActions
@@ -120,6 +158,31 @@ class SA58_CCO_FL_DZ : SA58_CCO_DZ
};
};
class SA58_CCO_MFL_DZ : SA58_CCO_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_cco_fl.p3d";
picture = "\z\addons\dayz_communityweapons\sa58\data\w_sa58_cco_fl_ca.paa";
displayName = $STR_DZ_WPN_SA58_CCO_MFL_NAME;
MFLASHLIGHT;
class Attachments {};
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_RMVE;
script = "; ['Attachment_CCO',_id,'SA58_RIS_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'SA58_CCO_DZ'] call player_removeAttachment";
};
};
};
class SA58_Holo_DZ : SA58_CCO_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_holo.p3d";
@@ -128,7 +191,8 @@ class SA58_Holo_DZ : SA58_CCO_DZ
class Attachments
{
Attachment_FL = SA58_Holo_FL_DZ;
Attachment_FL = "SA58_Holo_FL_DZ";
Attachment_MFL = "SA58_Holo_MFL_DZ";
};
class ItemActions
@@ -166,6 +230,31 @@ class SA58_Holo_FL_DZ : SA58_Holo_DZ
};
};
class SA58_Holo_MFL_DZ : SA58_Holo_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_holo_fl.p3d";
picture = "\z\addons\dayz_communityweapons\sa58\data\w_sa58_holo_fl_ca.paa";
displayName = $STR_DZ_WPN_SA58_HOLO_MFL_NAME;
MFLASHLIGHT;
class Attachments {};
class ItemActions
{
class RemoveHolo
{
text = $STR_DZ_ATT_HOLO_RMVE;
script = "; ['Attachment_Holo',_id,'SA58_RIS_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'SA58_Holo_DZ'] call player_removeAttachment";
};
};
};
class SA58_ACOG_DZ : SA58_CCO_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_acog.p3d";
@@ -213,7 +302,8 @@ class SA58_ACOG_DZ : SA58_CCO_DZ
class Attachments
{
Attachment_FL = SA58_ACOG_FL_DZ;
Attachment_FL = "SA58_ACOG_FL_DZ";
Attachment_MFL = "SA58_ACOG_MFL_DZ";
};
class ItemActions
@@ -249,4 +339,29 @@ class SA58_ACOG_FL_DZ : SA58_ACOG_DZ
script = "; ['Attachment_FL',_id,'SA58_ACOG_DZ'] call player_removeAttachment";
};
};
};
};
class SA58_ACOG_MFL_DZ : SA58_ACOG_DZ
{
model = "z\addons\dayz_communityweapons\sa58\sa58_acog_fl.p3d";
picture = "\z\addons\dayz_communityweapons\sa58\data\w_sa58_acog_fl_ca.paa";
displayName = $STR_DZ_WPN_SA58_ACOG_MFL_NAME;
MFLASHLIGHT;
class Attachments {};
class ItemActions
{
class RemoveACOG
{
text = $STR_DZ_ATT_ACOG_RMVE;
script = "; ['Attachment_ACOG',_id,'SA58_RIS_MFL_DZ'] call player_removeAttachment";
};
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_MFL',_id,'SA58_ACOG_DZ'] call player_removeAttachment";
};
};
};