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 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";
};
};
};