Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Pistols/Makarov.hpp
A Man 6f4b1706e3 Change used ammo for weapons
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.
2020-02-20 16:06:01 +01:00

26 lines
561 B
C++

class Makarov_DZ : Makarov
{
displayName = $STR_DZ_WPN_PM_NAME;
magazines[] = {"8Rnd_9x18_Makarov"};
class Attachments
{
Attachment_SupMakarov = "Makarov_SD_DZ"; //left to maintain old suppressor attachment
Attachment_Sup9 = "Makarov_SD_DZ";
};
};
class Makarov_SD_DZ : MakarovSD
{
displayName = $STR_DZ_WPN_PM_SD_NAME;
magazines[] = {"8Rnd_9x18_MakarovSD"};
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup9',_id,'Makarov_DZ'] call player_removeAttachment";
};
};
};