mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
324 lines
7.7 KiB
C++
324 lines
7.7 KiB
C++
#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_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 Attachments
|
|
{
|
|
Attachment_Sup762 = "MK14_CCO_SD_DZ";
|
|
};
|
|
};
|
|
|
|
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 Attachments {};
|
|
};
|
|
|
|
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_4outof10";
|
|
};
|
|
|
|
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 = $STR_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_ACOG_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;
|
|
|
|
class Attachments {};
|
|
class ItemActions {};
|
|
};
|
|
|
|
#undef MK14_ACOG |