mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
This commitment changes the type of ammo that can be used in silenced and non-silenced weapons. SD and non-SD ammo can currently be used in all weapon variations. We know this is possible and normal in real life, but arma weapons and ammo work in an unrealistic way. In the current state a SD weapon is almost no longer necessary since all normal weapons can be used with SD ammo to avoid triggering zombies or AIs. This is the same way that regular ammo in SD weapons works. This triggers AI's and zombies but not players. With this commitment we restore the actual and intended purpose of silenced weapons. SD ammo and SD weapons will have more relevance after this change. All silenced weapons can now only be used with SD ammo, and all non-silenced weapons can only be used with regular (non-SD) ammo.
208 lines
4.3 KiB
C++
208 lines
4.3 KiB
C++
class G36K_Camo_DZ : G36C
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g36\g36k_camo.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g36\data\w_g36k_camo_ca.paa";
|
|
displayName = $STR_DZ_WPN_G36K_CAMO_NAME;
|
|
magazines[] =
|
|
{
|
|
30Rnd_556x45_G36,
|
|
100Rnd_556x45_BetaCMag,
|
|
30Rnd_556x45_Stanag,
|
|
20Rnd_556x45_Stanag,
|
|
60Rnd_556x45_Stanag_tape_ice_DZE
|
|
};
|
|
//G36 Optic
|
|
optics = true;
|
|
opticsDisablePeripherialVision = true;
|
|
modelOptics = "z\addons\dayz_communityweapons\g36\2dscope_g36.p3d";
|
|
opticsPPEffects[]={"OpticsCHAbera1","OpticsBlur2"};
|
|
opticsZoomMin=0.083; opticsZoomMax=0.083;
|
|
distanceZoomMin=100; distanceZoomMax=100;
|
|
|
|
dexterity = 1.8;
|
|
|
|
class Single : Single
|
|
{
|
|
dispersion = 0.0011;
|
|
};
|
|
|
|
class Burst : Burst
|
|
{
|
|
dispersion = 0.0011;
|
|
};
|
|
|
|
class FullAuto : FullAuto
|
|
{
|
|
dispersion = 0.0011;
|
|
};
|
|
|
|
class OpticsModes
|
|
{
|
|
class Kolimator
|
|
{
|
|
opticsID = 1;
|
|
useModelOptics = false;
|
|
opticsFlare = false;
|
|
opticsDisablePeripherialVision = false;
|
|
opticsZoomMin=0.25;
|
|
opticsZoomMax=1.1;
|
|
opticsZoomInit=0.5;
|
|
distanceZoomMin=100;
|
|
distanceZoomMax=100;
|
|
memoryPointCamera = "eye";
|
|
visionMode[] = {};
|
|
opticsPPEffects[]={"OpticsCHAbera1","OpticsBlur1"};
|
|
cameraDir = "";
|
|
};
|
|
|
|
class Scope
|
|
{
|
|
opticsID = 2;
|
|
useModelOptics = true;
|
|
opticsFlare = true;
|
|
opticsDisablePeripherialVision = true;
|
|
opticsZoomMin = 0.083;
|
|
opticsZoomMax = 0.083;
|
|
opticsZoomInit= 0.083;
|
|
distanceZoomMin=200;
|
|
distanceZoomMax=200;
|
|
memoryPointCamera = "opticView";
|
|
visionMode[] = {"Normal"};
|
|
opticsPPEffects[]={"OpticsCHAbera1","OpticsBlur1"};
|
|
cameraDir = "";
|
|
};
|
|
};
|
|
//G36 Optic end
|
|
|
|
class Attachments
|
|
{
|
|
Attachment_Sup556 = "G36K_Camo_SD_DZ";
|
|
};
|
|
};
|
|
|
|
class G36K_Camo_SD_DZ : G36_C_SD_eotech
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g36\g36k_camo_sd.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g36\data\w_g36k_camo_sd_ca.paa";
|
|
displayName = $STR_DZ_WPN_G36K_CAMO_SD_NAME;
|
|
|
|
magazines[] =
|
|
{
|
|
30Rnd_556x45_G36SD,
|
|
30Rnd_556x45_StanagSD
|
|
};
|
|
|
|
//G36 Optic
|
|
optics = true;
|
|
opticsDisablePeripherialVision = true;
|
|
modelOptics = "z\addons\dayz_communityweapons\g36\2dscope_g36_noflash.p3d";
|
|
opticsPPEffects[]={"OpticsCHAbera1","OpticsBlur2"};
|
|
opticsZoomMin=0.083; opticsZoomMax=0.083;
|
|
distanceZoomMin=100; distanceZoomMax=100;
|
|
|
|
dexterity = 1.7;
|
|
|
|
class Single : Single
|
|
{
|
|
dispersion = 0.0011;
|
|
};
|
|
|
|
class Burst : Burst
|
|
{
|
|
dispersion = 0.0011;
|
|
};
|
|
|
|
class FullAuto : FullAuto
|
|
{
|
|
dispersion = 0.0011;
|
|
};
|
|
|
|
class OpticsModes
|
|
{
|
|
class Kolimator
|
|
{
|
|
opticsID = 1;
|
|
useModelOptics = false;
|
|
opticsFlare = false;
|
|
opticsDisablePeripherialVision = false;
|
|
opticsZoomMin=0.25;
|
|
opticsZoomMax=1.1;
|
|
opticsZoomInit=0.5;
|
|
distanceZoomMin=100;
|
|
distanceZoomMax=100;
|
|
memoryPointCamera = "eye";
|
|
visionMode[] = {};
|
|
opticsPPEffects[]={"OpticsCHAbera1","OpticsBlur1"};
|
|
cameraDir = "";
|
|
};
|
|
|
|
class Scope
|
|
{
|
|
opticsID = 2;
|
|
useModelOptics = true;
|
|
opticsFlare = true;
|
|
opticsDisablePeripherialVision = true;
|
|
opticsZoomMin = 0.083;
|
|
opticsZoomMax = 0.083;
|
|
opticsZoomInit= 0.083;
|
|
distanceZoomMin=200;
|
|
distanceZoomMax=200;
|
|
memoryPointCamera = "opticView";
|
|
visionMode[] = {"Normal"};
|
|
opticsPPEffects[]={"OpticsCHAbera1","OpticsBlur1"};
|
|
cameraDir = "";
|
|
};
|
|
};
|
|
//G36 Optic end
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveSuppressor
|
|
{
|
|
text = $STR_ATTACHMENT_RMVE_Silencer;
|
|
script = "; ['Attachment_Sup556',_id,'G36K_Camo_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class G36A_Camo_DZ : G36K_Camo_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g36\g36a_camo.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g36\data\w_g36a_camo_ca.paa";
|
|
displayName = $STR_DZ_WPN_G36A_CAMO_NAME;
|
|
|
|
dexterity = 1.66;
|
|
|
|
class Single : Single
|
|
{
|
|
dispersion = 0.0007;
|
|
};
|
|
|
|
class Burst : Burst
|
|
{
|
|
dispersion = 0.0007;
|
|
};
|
|
|
|
class FullAuto : FullAuto
|
|
{
|
|
dispersion = 0.0007;
|
|
};
|
|
|
|
class Attachments {};
|
|
};
|
|
|
|
/*class G36A_Camo_SD_DZ : G36K_Camo_SD_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g36\g36a_camo_sd";
|
|
picture = "\z\addons\dayz_communityweapons\g36\data\w_g36a_camo_sd_ca.paa";
|
|
displayName = $STR_DZ_WPN_G36K_CAMO_SD_NAME;
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveSuppressor
|
|
{
|
|
text = $STR_ATTACHMENT_RMVE_Silencer;
|
|
script = "; ['Attachment_Sup556',_id,'G36K_Camo_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};*/ |