mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
CFG WEAPONS DONE
This commit is contained in:
121
SQF/dayz_code/Configs/CfgWeapons/Rifles/RPK.hpp
Normal file
121
SQF/dayz_code/Configs/CfgWeapons/Rifles/RPK.hpp
Normal file
@@ -0,0 +1,121 @@
|
||||
//TODO: configure recoil, rate of fire etc (different from akm)
|
||||
|
||||
class RPK_DZ : AK_47_M
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\rpk\rpk.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\rpk\data\w_rpk_ca.paa";
|
||||
displayName = $STR_DZ_WPN_RPK_NAME;
|
||||
descriptionShort = $STR_DZ_WPN_RPK_DESC;
|
||||
|
||||
magazines[] =
|
||||
{
|
||||
75Rnd_762x39_RPK,
|
||||
30Rnd_762x39_AK47
|
||||
};
|
||||
|
||||
modes[] = {FullAuto,Single};
|
||||
|
||||
//iron sight zeroing
|
||||
weaponInfoType = "RscWeaponZeroing";
|
||||
discreteDistance[] = {100,200,300,400,500,600,700,800,900,1000};
|
||||
discreteDistanceInitIndex = 0;
|
||||
//iron sight zeroing end
|
||||
|
||||
class Attachments
|
||||
{
|
||||
Attachment_Kobra = RPK_Kobra_DZ;
|
||||
Attachment_PSO1 = RPK_PSO1_DZ;
|
||||
};
|
||||
|
||||
class ItemActions {};
|
||||
};
|
||||
|
||||
class RPK_Kobra_DZ : RPK_DZ
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\rpk\rpk_kobra.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\rpk\data\w_rpk_kobra_ca.paa";
|
||||
displayName = $STR_DZ_WPN_RPK_KOBRA_NAME;
|
||||
|
||||
//kobra zeroing
|
||||
weaponInfoType = "RscWeaponEmpty";
|
||||
discreteDistance[] = {};
|
||||
discreteDistanceInitIndex = 0;
|
||||
distanceZoomMin = 200;
|
||||
distanceZoomMax = 200;
|
||||
//kobra zeroing end
|
||||
|
||||
class Attachments {};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemoveKobra
|
||||
{
|
||||
text = $STR_DZ_ATT_KOBRA_RMVE;
|
||||
script = "; ['Attachment_Kobra',_id,'RPK_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class RPK_PSO1_DZ : RPK_Kobra_DZ
|
||||
{
|
||||
model = "z\addons\dayz_communityweapons\rpk\rpk_pso.p3d";
|
||||
picture = "\z\addons\dayz_communityweapons\rpk\data\w_rpk_pso_ca.paa";
|
||||
displayName = $STR_DZ_WPN_RPK_PSO1_NAME;
|
||||
|
||||
//PSO-1
|
||||
optics = true;
|
||||
opticsDisablePeripherialVision = true;
|
||||
modelOptics = "\ca\weapons\optika_snpiere";
|
||||
opticsPPEffects[]={"OpticsCHAbera3","OpticsBlur3"};
|
||||
opticsZoomMin=0.0623; opticsZoomMax=0.0623;
|
||||
distanceZoomMin= 200; distanceZoomMax= 200;
|
||||
|
||||
class OpticsModes
|
||||
{
|
||||
class Scope
|
||||
{
|
||||
opticsID = 1;
|
||||
useModelOptics = true;
|
||||
opticsFlare = true;
|
||||
opticsDisablePeripherialVision = true;
|
||||
opticsZoomMin = 0.0623;
|
||||
opticsZoomMax = 0.0623;
|
||||
opticsZoomInit = 0.0623;
|
||||
distanceZoomMin = 200;
|
||||
distanceZoomMax = 200;
|
||||
memoryPointCamera = "opticView";
|
||||
visionMode[] = {"Normal"};
|
||||
opticsPPEffects[] = {"OpticsCHAbera3","OpticsBlur3"};
|
||||
cameraDir = "";
|
||||
};
|
||||
|
||||
class Ironsights
|
||||
{
|
||||
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 = "";
|
||||
};
|
||||
};
|
||||
//PSO-1 end
|
||||
|
||||
class Attachments {};
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class RemovePSO1
|
||||
{
|
||||
text = $STR_DZ_ATT_PSO1_RMVE;
|
||||
script = "; ['Attachment_PSO1',_id,'RPK_DZ'] call player_removeAttachment";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user