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.
182 lines
4.0 KiB
C++
182 lines
4.0 KiB
C++
class G17_DZ : glock17_EP1
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g17\g17.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_ca.paa";
|
|
displayName = $STR_DZ_WPN_G17_NAME;
|
|
magazines[] = {"17Rnd_9x19_glock17"};
|
|
|
|
delete FlashLight;
|
|
|
|
class Attachments
|
|
{
|
|
Attachment_Sup9 = "G17_SD_DZ";
|
|
Attachment_FL_Pist = "G17_FL_DZ";
|
|
Attachment_MFL_Pist = "G17_MFL_DZ";
|
|
};
|
|
};
|
|
|
|
class G17_FL_DZ : G17_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g17\g17_fl.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_fl_ca.paa";
|
|
displayName = $STR_DZ_WPN_G17_FL_NAME;
|
|
|
|
class FlashLight
|
|
{
|
|
color[] = {0.9, 0.9, 0.7, 0.9};
|
|
ambient[] = {0.1, 0.1, 0.1, 1.0};
|
|
position = "flash dir";
|
|
direction = "flash";
|
|
angle = 30;
|
|
scale[] = {1, 1, 0.5};
|
|
brightness = 0.1;
|
|
};
|
|
|
|
class Attachments
|
|
{
|
|
Attachment_Sup9 = "G17_SD_FL_DZ";
|
|
};
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveFlashlight
|
|
{
|
|
text = $STR_DZ_ATT_FL_PST_RMVE;
|
|
script = "; ['Attachment_FL_Pist',_id,'G17_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class G17_MFL_DZ : G17_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g17\g17_fl.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_fl_ca.paa";
|
|
displayName = $STR_DZ_WPN_G17_MFL_NAME;
|
|
|
|
class FlashLight
|
|
{
|
|
color[] = {0.9, 0.0, 0.0, 0.9};
|
|
ambient[] = {0.1, 0.0, 0.0, 1.0};
|
|
position = "flash dir";
|
|
direction = "flash";
|
|
angle = 30;
|
|
scale[] = {1, 1, 0.5};
|
|
brightness = 0.08;
|
|
};
|
|
|
|
class Attachments
|
|
{
|
|
Attachment_Sup9 = "G17_SD_MFL_DZ";
|
|
};
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveFlashlight
|
|
{
|
|
text = $STR_DZ_ATT_FL_PST_RMVE;
|
|
script = "; ['Attachment_MFL_Pist',_id,'G17_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class G17_SD_DZ : M9SD
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g17\g17_sd.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_ca.paa";
|
|
displayName = $STR_DZ_WPN_G17_SD_NAME;
|
|
magazines[] = {"17Rnd_9x19_glock17SD"};
|
|
|
|
reloadMagazineSound[]={"Ca\Sounds_E\Weapons_E\Glock17\reload1",db0,1, 20};
|
|
|
|
recoil = "recoil_single_pistol_2outof3";
|
|
recoilProne = "recoil_single_pistol_prone_2outof3";
|
|
|
|
class Library {libTextDesc = $STR_EP1_LIB_glock17;};
|
|
descriptionShort = $STR_EP1_DSS_glock17_EP1;
|
|
|
|
class Attachments
|
|
{
|
|
Attachment_FL_Pist = "G17_SD_FL_DZ";
|
|
Attachment_MFL_Pist = "G17_SD_MFL_DZ";
|
|
};
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveSuppressor
|
|
{
|
|
text = $STR_ATTACHMENT_RMVE_Silencer;
|
|
script = "; ['Attachment_Sup9',_id,'G17_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class G17_SD_FL_DZ : G17_SD_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g17\g17_sd_fl.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_fl_ca.paa";
|
|
displayName = $STR_DZ_WPN_G17_SD_FL_NAME;
|
|
|
|
class FlashLight
|
|
{
|
|
color[] = {0.9, 0.9, 0.7, 0.9};
|
|
ambient[] = {0.1, 0.1, 0.1, 1.0};
|
|
position = "flash dir";
|
|
direction = "flash";
|
|
angle = 30;
|
|
scale[] = {1, 1, 0.5};
|
|
brightness = 0.1;
|
|
};
|
|
|
|
class Attachments {};
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveSuppressor
|
|
{
|
|
text = $STR_ATTACHMENT_RMVE_Silencer;
|
|
script = "; ['Attachment_Sup9',_id,'G17_FL_DZ'] call player_removeAttachment";
|
|
};
|
|
|
|
class RemoveFlashlight
|
|
{
|
|
text = $STR_DZ_ATT_FL_PST_RMVE;
|
|
script = "; ['Attachment_FL_Pist',_id,'G17_SD_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|
|
|
|
class G17_SD_MFL_DZ : G17_SD_DZ
|
|
{
|
|
model = "z\addons\dayz_communityweapons\g17\g17_sd_fl.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_sd_fl_ca.paa";
|
|
displayName = $STR_DZ_WPN_G17_SD_MFL_NAME;
|
|
|
|
class FlashLight
|
|
{
|
|
color[] = {0.9, 0.0, 0.0, 0.9};
|
|
ambient[] = {0.1, 0.0, 0.0, 1.0};
|
|
position = "flash dir";
|
|
direction = "flash";
|
|
angle = 30;
|
|
scale[] = {1, 1, 0.5};
|
|
brightness = 0.08;
|
|
};
|
|
|
|
class Attachments {};
|
|
|
|
class ItemActions
|
|
{
|
|
class RemoveSuppressor
|
|
{
|
|
text = $STR_ATTACHMENT_RMVE_Silencer;
|
|
script = "; ['Attachment_Sup9',_id,'G17_MFL_DZ'] call player_removeAttachment";
|
|
};
|
|
|
|
class RemoveFlashlight
|
|
{
|
|
text = $STR_DZ_ATT_FL_PST_RMVE;
|
|
script = "; ['Attachment_MFL_Pist',_id,'G17_SD_DZ'] call player_removeAttachment";
|
|
};
|
|
};
|
|
};
|