mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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?)
71 lines
1.7 KiB
C++
71 lines
1.7 KiB
C++
#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_DZ_WPN_R870_NAME;
|
|
descriptionShort = $STR_DZ_WPN_R870_DESC;
|
|
|
|
magazines[] =
|
|
{
|
|
8Rnd_12Gauge_Slug,
|
|
8Rnd_12Gauge_Buck,
|
|
2Rnd_12Gauge_Slug,
|
|
2Rnd_12Gauge_Buck
|
|
};
|
|
class Attachments
|
|
{
|
|
Attachment_FL = "Remington870_FL_DZ";
|
|
};
|
|
|
|
handAnim[] = {"OFP2_ManSkeleton", "\Ca\weapons_E\Data\Anim\LeeEnfield.rtm"};
|
|
|
|
distanceZoomMin = 100;
|
|
distanceZoomMax = 100;
|
|
|
|
modes[] = {"Single"};
|
|
|
|
class Single : Mode_SemiAuto
|
|
{
|
|
dispersion = 0.003;
|
|
soundContinuous = 0;
|
|
reloadTime = 0.5;
|
|
reloadMagazineSound[] = {"\ca\sounds\weapons\rifles\M1014-reload", 0.316228, 1, 20};
|
|
begin1[] = {"dayz_weapons\sounds\shotgun_0", 1.77828, 1, 1000};
|
|
begin2[] = {"dayz_weapons\sounds\shotgun_1", 1.77828, 1, 1000};
|
|
soundBegin[] = {"begin1", 0.5, "begin2", 0.5};
|
|
drySound[] = {"ca\sounds\weapons\rifles\dry", 0.01, 1, 10};
|
|
recoil = "recoil_single_primary_9outof10";
|
|
recoilProne = "recoil_single_primary_prone_8outof10";
|
|
};
|
|
};
|
|
|
|
class Remington870_FL_DZ : Remington870_DZ
|
|
{
|
|
model = "\dayz_weapons\models\Remington870_lamp.p3d";
|
|
displayname = $STR_DZ_WPN_R870_FL_NAME;
|
|
descriptionShort = $STR_DZ_WPN_R870_FL_DESC;
|
|
|
|
R870_FLASHLIGHT;
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveFlashlight
|
|
{
|
|
text = $STR_DZ_ATT_FL_RFL_RMVE;
|
|
script = "; ['Attachment_FL',_id,'Remington870_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
}; |