mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-13 13:21:57 +03:00
Add military flashlight attachments
Vanilla commit: https://github.com/DayZMod/DayZ/commit/b6ba294b70a97adc571f6a8a6416d796053451f5
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
#include "FL.hpp"
|
||||
#include "FL_Pist.hpp"
|
||||
|
||||
#include "MFL.hpp"
|
||||
#include "MFL_Pist.hpp"
|
||||
|
||||
#include "CCO.hpp"
|
||||
#include "Holo.hpp"
|
||||
#include "ACOG.hpp"
|
||||
@@ -21,4 +24,4 @@
|
||||
|
||||
#include "Ghillie.hpp"
|
||||
|
||||
#include "SA58RIS.hpp"
|
||||
#include "SA58RIS.hpp"
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
class Attachment_MFL : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = WeaponSlotItem;
|
||||
|
||||
model = "\z\addons\dayz_communityweapons\attachments\flashlight_rifle\flashlight_rifle.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\attachments\flashlight_rifle\data\m_flashlight_rifle_ca.paa";
|
||||
|
||||
displayName = $STR_DZ_ATT_MFL_RFL_NAME;
|
||||
descriptionShort = $STR_DZ_ATT_MFL_RFL_DESC;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class AttachToPrimary
|
||||
{
|
||||
text = $STR_DZ_ATT_ACT_TO_PRIMARY;
|
||||
script = "; [_id,1] call player_attachAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
class Attachment_MFL_Pist : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = WeaponSlotItem;
|
||||
|
||||
model = "\z\addons\dayz_communityweapons\attachments\flashlight_pistol\flashlight_pistol.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\attachments\flashlight_pistol\data\m_flashlight_pistol_ca.paa";
|
||||
|
||||
displayName = $STR_DZ_ATT_MFL_PST_NAME;
|
||||
descriptionShort = $STR_DZ_ATT_MFL_PST_DESC;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class AttachToSecondary
|
||||
{
|
||||
text = $STR_DZ_ATT_ACT_TO_SECONDARY;
|
||||
script = "; [_id,0] call player_attachAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user