Mag names, Attachments names, Translation fixes

Vanilla development commit:

af9e009bae

- renamed magazines for better sorting
- renamed attachments for better sorting ([A] prefix added) some fixes,
some strings moved to proper section
- Remington 870 added to new attachment system (weapon flashlight)
- Double-barrel shotgun will now spawns with pellets and has Doubleshot
option (maybe this will make it more popular?)
This commit is contained in:
ebaydayz
2016-07-10 15:25:36 -04:00
parent 4ff088c80c
commit 73d557806e
19 changed files with 628 additions and 310 deletions

View File

@@ -1,11 +1,22 @@
#define R870_FLASHLIGHT class FlashLight\
{\
color[] = {0.9, 0.9, 0.7, 0.9};\
ambient[] = {0.1, 0.1, 0.1, 1.0};\
position = "flash dir";\
direction = "flash";\
angle = 30;\
scale[] = {1, 1, 0.5};\
brightness = 0.1;\
}
class Remington870_DZ : Rifle
{
scope = public;
model = "\dayz_weapons\models\Remington870.p3d";
picture = "\dayz_weapons\textures\equip_remington870_CA.paa";
displayname = $STR_WPN_NAME_2;
descriptionShort = $STR_WPN_DESC_2;
displayname = $STR_DZ_WPN_R870_NAME;
descriptionShort = $STR_DZ_WPN_R870_DESC;
magazines[] =
{
@@ -14,6 +25,10 @@ class Remington870_DZ : Rifle
2Rnd_12Gauge_Slug,
2Rnd_12Gauge_Buck
};
class Attachments
{
Attachment_FL = "Remington870_FL_DZ";
};
handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons_E\Data\Anim\LeeEnfield.rtm"};
@@ -40,17 +55,17 @@ class Remington870_DZ : Rifle
class Remington870_FL_DZ : Remington870_DZ
{
model = "\dayz_weapons\models\Remington870_lamp.p3d";
displayname = $STR_WPN_NAME_3;
descriptionShort = $STR_WPN_DESC_3;
displayname = $STR_DZ_WPN_R870_FL_NAME;
descriptionShort = $STR_DZ_WPN_R870_FL_DESC;
class FlashLight
R870_FLASHLIGHT;
class ItemActions
{
color[] = {0.9, 0.9, 0.7, 0.9};
ambient[] = {0.1, 0.1, 0.1, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.1;
class RemoveFlashlight
{
text = $STR_DZ_ATT_FL_RFL_RMVE;
script = "; ['Attachment_FL',_id,'Remington870_DZ'] call player_removeAttachment";
};
};
};