mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-23 16:40:50 +03:00
Add MK14, M21A5
Thx Rober Hammer for the RH MGS weapon pack.
This commit is contained in:
@@ -105,6 +105,7 @@ class CfgWeapons
|
||||
#include "Rifles\M1ASC.hpp"
|
||||
#include "Rifles\M21.hpp"
|
||||
#include "Rifles\HK417.hpp"
|
||||
#include "Rifles\MK14.hpp"
|
||||
|
||||
//CZ 805
|
||||
#include "Rifles\CZ805.hpp"
|
||||
|
||||
@@ -36,4 +36,39 @@ class M21_DZ: M14_EP1
|
||||
maxRange = 650;
|
||||
maxRangeProbab = 0.05;
|
||||
};
|
||||
};
|
||||
|
||||
class M21A5_DZ: M21_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_M21A5_NAME;
|
||||
model = "\RH_mgswp\RH_mk21a5.p3d";
|
||||
picture = "\RH_mgswp\inv\mk21a5.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
modelOptics = "\ca\weapons\2Dscope_MilDot_10";
|
||||
opticsZoomMin = "0.28778/10";
|
||||
opticsZoomMax = "0.28778/10";
|
||||
opticsZoomInit = "0.28778/10";
|
||||
discretefov[] = {};
|
||||
discreteInitIndex = 0;
|
||||
visionMode[] = {"Normal"};
|
||||
distanceZoomMin = 329;
|
||||
distanceZoomMax = 329;
|
||||
weaponInfoType = "RscWeaponZeroing";
|
||||
discreteDistance[] = {100,200,300,400,500,600,700,800};
|
||||
discreteDistanceInitIndex = 2;
|
||||
};
|
||||
|
||||
class M21A5_SD_DZ: M21A5_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_M21A5_SD_NAME;
|
||||
descriptionShort = $STR_DZ_WPN_M21SD_DESC;
|
||||
model = "\RH_mgswp\RH_mk21a5sd.p3d";
|
||||
picture = "\RH_mgswp\inv\mk21a5sd.paa";
|
||||
magazines[] = {20Rnd_762x51_DMRSD};
|
||||
|
||||
class Single: Mode_SemiAuto
|
||||
{
|
||||
begin1[] = {"\RH_mgswp\sound\m14sd",1.0,1,200};
|
||||
soundBegin[] = {"begin1",1};
|
||||
};
|
||||
};
|
||||
314
SQF/dayz_code/Configs/CfgWeapons/Rifles/MK14.hpp
Normal file
314
SQF/dayz_code/Configs/CfgWeapons/Rifles/MK14.hpp
Normal file
@@ -0,0 +1,314 @@
|
||||
#define MK14_ACOG modelOptics = "\Ca\weapons_E\SCAR\ACOG_TA31_optic_4x.p3d";\
|
||||
class OpticsModes\
|
||||
{\
|
||||
class ACOG\
|
||||
{\
|
||||
opticsID = 1;\
|
||||
useModelOptics = true;\
|
||||
opticsFlare = true;\
|
||||
opticsDisablePeripherialVision = true;\
|
||||
opticsZoomMin = 0.0623;\
|
||||
opticsZoomMax = 0.0623;\
|
||||
opticsZoomInit = 0.0623;\
|
||||
distanceZoomMin = 300;\
|
||||
distanceZoomMax = 300;\
|
||||
memoryPointCamera = "opticView";\
|
||||
visionMode[] = {"Normal"};\
|
||||
opticsPPEffects[] = {"OpticsCHAbera3","OpticsBlur3"};\
|
||||
cameraDir = "";\
|
||||
};\
|
||||
\
|
||||
class Iron\
|
||||
{\
|
||||
opticsID = 2;\
|
||||
useModelOptics = false;\
|
||||
opticsFlare = false;\
|
||||
opticsDisablePeripherialVision = false;\
|
||||
opticsZoomMin = 0.25;\
|
||||
opticsZoomMax = 1.1;\
|
||||
opticsZoomInit = 0.5;\
|
||||
distanceZoomMin = 100;\
|
||||
distanceZoomMax = 100;\
|
||||
memoryPointCamera = "eye";\
|
||||
visionMode[] = {};\
|
||||
opticsPPEffects[] = {};\
|
||||
cameraDir = "";\
|
||||
};\
|
||||
}
|
||||
|
||||
class MK14_DZ: M14_EP1
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_NAME;
|
||||
model = "\RH_mgswp\RH_mk14.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14.paa";
|
||||
magazines[] = {20Rnd_762x51_DMR};
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M14ebr.rtm"};
|
||||
modes[] = {"Single","FullAuto"};
|
||||
|
||||
class Single: Mode_SemiAuto
|
||||
{
|
||||
begin1[] = {"ca\sounds\weapons\rifles\sniper_single_05",1.7782794,1,1000};
|
||||
soundBegin[] = {"begin1",1};
|
||||
dispersion = 0.00045;
|
||||
recoil = "recoil_single_primary_3outof10";
|
||||
recoilProne = "recoil_single_primary_prone_3outof10";
|
||||
minRange = 0;
|
||||
minRangeProbab = 0.3;
|
||||
midRange = 150;
|
||||
midRangeProbab = 0.7;
|
||||
maxRange = 300;
|
||||
maxRangeProbab = 0.05;
|
||||
};
|
||||
class FullAuto : Single
|
||||
{
|
||||
autoFire = 1;
|
||||
dispersion = 0.00050000002;
|
||||
displayName = "$STR_DN_MODE_FULLAUTO";
|
||||
maxRange = 200;
|
||||
midRange = 80;
|
||||
recoil = "recoil_auto_primary_5outof10";
|
||||
recoilProne = "recoil_auto_primary_prone_5outof10";
|
||||
};
|
||||
|
||||
class Attachments
|
||||
{
|
||||
Attachment_CCO = "MK14_CCO_DZ";
|
||||
Attachment_Holo = "MK14_HOLO_DZ";
|
||||
Attachment_ACOG = "MK14_ACOG_DZ";
|
||||
Attachment_Sup762 = "MK14_SD_DZ";
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_CCO_DZ: MK14_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_CCO_SD_NAME;
|
||||
model = "\RH_mgswp\RH_mk14aim.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14aim.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveCCO
|
||||
{
|
||||
text = $STR_DZ_ATT_CCO_RMVE;
|
||||
script = "; ['Attachment_CCO',_id,'MK14_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_Holo_DZ: MK14_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_HOLO_NAME;
|
||||
model = "\RH_mgswp\RH_mk14eotech.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14eotech.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
|
||||
class Attachments
|
||||
{
|
||||
Attachment_Sup762 = "MK14_Holo_SD_DZ";
|
||||
};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveHolo
|
||||
{
|
||||
text = $STR_DZ_ATT_HOLO_RMVE;
|
||||
script = "; ['Attachment_Holo',_id,'MK14_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_ACOG_DZ: MK14_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_ACOG_NAME;
|
||||
model = "\RH_mgswp\RH_mk14acog.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14acog.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
|
||||
MK14_ACOG;
|
||||
|
||||
class Attachments
|
||||
{
|
||||
Attachment_Sup762 = "MK14_ACOG_SD_DZ";
|
||||
};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveACOG
|
||||
{
|
||||
text = $STR_DZ_ATT_ACOG_RMVE;
|
||||
script = "; ['Attachment_ACOG',_id,'MK14_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_Sniper_DZ: MK14_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_SNIPER_NAME;
|
||||
model = "\RH_mgswp\RH_m14ebrsp.p3d";
|
||||
picture = "\RH_mgswp\inv\m14ebrsp.paa";
|
||||
uipicture = "\ca\weapons\data\ico\i_sniper_ca.paa";
|
||||
modelOptics = "\ca\Weapons_baf\LRR_optic";
|
||||
opticsZoomMin = "0.28778/12";
|
||||
opticsZoomMax = "0.28778/3";
|
||||
opticsZoomInit = "0.28778/3";
|
||||
discretefov[] = {};
|
||||
discreteInitIndex = 0;
|
||||
visionMode[] = {"Normal"};
|
||||
distanceZoomMin = 329;
|
||||
distanceZoomMax = 329;
|
||||
weaponInfoType = "RscWeaponZeroing";
|
||||
discreteDistance[] = {100,200,300,400,500,600,700,800};
|
||||
discreteDistanceInitIndex = 2;
|
||||
};
|
||||
|
||||
class MK14_SD_DZ: M14_EP1
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_SD_NAME;
|
||||
descriptionShort = $STR_DZ_WPN_MK14SD_DESC;
|
||||
model = "\RH_mgswp\RH_mk14sd.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14sd.paa";
|
||||
magazines[] = {20Rnd_762x51_DMRSD};
|
||||
modes[] = {"Single","FullAuto"};
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M14ebr.rtm"};
|
||||
|
||||
class Single: Mode_SemiAuto
|
||||
{
|
||||
begin1[] = {"\RH_mgswp\sound\m14sd",1.0,1,200};
|
||||
soundBegin[] = {"begin1",1};
|
||||
dispersion = 0.00045;
|
||||
recoil = "recoil_single_primary_3outof10";
|
||||
recoilProne = "recoil_single_primary_prone_3outof10";
|
||||
minRange = 0;
|
||||
minRangeProbab = 0.3;
|
||||
midRange = 150;
|
||||
midRangeProbab = 0.7;
|
||||
maxRange = 300;
|
||||
maxRangeProbab = 0.05;
|
||||
};
|
||||
class FullAuto : Single
|
||||
{
|
||||
begin1[] = {"\RH_mgswp\sound\m14sd",1.0,1,200};
|
||||
soundBegin[] = {"begin1",1};
|
||||
autoFire = 1;
|
||||
dispersion = 0.00050000002;
|
||||
displayName = "$STR_DN_MODE_FULLAUTO";
|
||||
maxRange = 200;
|
||||
midRange = 80;
|
||||
recoil = "recoil_auto_primary_5outof10";
|
||||
recoilProne = "recoil_auto_primary_prone_5outof10";
|
||||
};
|
||||
|
||||
class Attachments
|
||||
{
|
||||
Attachment_CCO = "MK14_CCO_SD_DZ";
|
||||
Attachment_Holo = "MK14_Holo_SD_DZ";
|
||||
Attachment_ACOG = "MK14_ACOG_SD_DZ";
|
||||
};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveSuppressor
|
||||
{
|
||||
text = $STR_ATTACHMENT_RMVE_Silencer;
|
||||
script = "; ['Attachment_Sup762',_id,'MK14_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_CCO_SD_DZ: MK14_SD_DZ
|
||||
{
|
||||
displayName = $TR_DZ_WPN_MK14_CCO_SD_NAME;
|
||||
model = "\RH_mgswp\RH_mk14sdaim.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14sdaim.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
|
||||
class Attachments {};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveCCO
|
||||
{
|
||||
text = $STR_DZ_ATT_CCO_RMVE;
|
||||
script = "; ['Attachment_CCO',_id,'MK14_SD_DZ'] call player_removeAttachment";
|
||||
};
|
||||
class RemoveSuppressor
|
||||
{
|
||||
text = $STR_ATTACHMENT_RMVE_Silencer;
|
||||
script = "; ['Attachment_Sup762',_id,'MK14_CCO_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_Holo_SD_DZ: MK14_SD_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_HOLO_SD_NAME;
|
||||
model = "\RH_mgswp\RH_mk14sdeotech.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14sdeotech.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
|
||||
class Attachments {};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveHolo
|
||||
{
|
||||
text = $STR_DZ_ATT_HOLO_RMVE;
|
||||
script = "; ['Attachment_Holo',_id,'MK14_SD_DZ'] call player_removeAttachment";
|
||||
};
|
||||
class RemoveSuppressor
|
||||
{
|
||||
text = $STR_ATTACHMENT_RMVE_Silencer;
|
||||
script = "; ['Attachment_Sup762',_id,'MK14_Holo_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_ACOG_SD_DZ: MK14_SD_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_HOLO_SD_NAME;
|
||||
descriptionShort = "Suppressed assault rifle<br/>Caliber: 7.62x51mm NATO<br/>Scope power: 4X<br/>Vertical grip";
|
||||
model = "\RH_mgswp\RH_mk14sdacog.p3d";
|
||||
picture = "\RH_mgswp\inv\mk14sdacog.paa";
|
||||
handAnim[] = {"OFP2_ManSkeleton","\RH_mgswp\anim\RH_M4cs.rtm"};
|
||||
|
||||
MK14_ACOG;
|
||||
|
||||
class Attachments {};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveACOG
|
||||
{
|
||||
text = $STR_DZ_ATT_ACOG_RMVE;
|
||||
script = "; ['Attachment_ACOG',_id,'MK14_SD_DZ'] call player_removeAttachment";
|
||||
};
|
||||
class RemoveSuppressor
|
||||
{
|
||||
text = $STR_ATTACHMENT_RMVE_Silencer;
|
||||
script = "; ['Attachment_Sup762',_id,'MK14_ACOG_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class MK14_Sniper_SD_DZ: MK14_SD_DZ
|
||||
{
|
||||
displayName = $STR_DZ_WPN_MK14_SNIPER_SD_NAME;
|
||||
model = "\RH_mgswp\RH_m14ebrsp_sd.p3d";
|
||||
picture = "\RH_mgswp\inv\m14ebrsp_sd.paa";
|
||||
uipicture = "\ca\weapons\data\ico\i_sniper_ca.paa";
|
||||
modelOptics = "\ca\Weapons_baf\LRR_optic";
|
||||
opticsZoomMin = "0.28778/12";
|
||||
opticsZoomMax = "0.28778/3";
|
||||
opticsZoomInit = "0.28778/3";
|
||||
discretefov[] = {};
|
||||
discreteInitIndex = 0;
|
||||
visionMode[] = {"Normal"};
|
||||
distanceZoomMin = 329;
|
||||
distanceZoomMax = 329;
|
||||
weaponInfoType = "RscWeaponZeroing";
|
||||
discreteDistance[] = {100,200,300,400,500,600,700,800};
|
||||
discreteDistanceInitIndex = 2;
|
||||
};
|
||||
|
||||
#undef MK14_ACOG
|
||||
Reference in New Issue
Block a user