Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Pistols/P99.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

101 lines
2.6 KiB
C++

class P99_Black_DZ: M9
{
displayName = $STR_DZ_WPN_P99_NAME;
model = "\C1987_P99\P99_black.p3d";
picture = "\C1987_P99\equip\p99_black.paa";
soundBegin[] = {"begin1",1};
begin1[] = {"\C1987_P99\sound\p99.wss",1.0,1};
reloadMagazineSound[] = {"\C1987_P99\sound\p99_reload.wss",0.1,1,20};
magazines[] = {"15Rnd_10x22_p99"};
descriptionShort = $STR_DZ_WPN_P99_DESC;
class Library
{
libTextDesc = "The Walther P99 is a semi-automatic pistol developed by the German Company Carl Walther GmbH Sportwaffen of Ulm for law enforcement, security forces and the civilian shooting market as a replacement for the Walther P5 and the P88. The P99 and its variants are also made under license by Fabryka Broni Radom.";
};
class Attachments
{
Attachment_Sup10 = "P99_Black_SD_DZ";
};
};
class P99_Black_SD_DZ: M9SD
{
displayName = $STR_DZ_WPN_P99SD_NAME;
model = "\C1987_P99\P99_black_sd.p3d";
picture = "\C1987_P99\equip\p99_black_sd.paa";
soundBegin[] = {"begin1",1};
fireLightDuration = 0.0;
fireLightIntensity = 0.0;
begin1[] = {"\C1987_P99\sound\p99_sd.wss",1.0,1};
reloadMagazineSound[] = {"\C1987_P99\sound\p99_reload.wss",0.1,1,20};
magazines[] = {"15Rnd_10x22_p99_sd"};
descriptionShort = $STR_DZ_WPN_P99SD_DESC;
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup10',_id,'P99_Black_DZ'] call player_removeAttachment";
};
};
};
class P99_Green_DZ: P99_Black_DZ
{
displayName = $STR_DZ_WPN_P99_NAME;
model = "\C1987_P99\P99_green.p3d";
picture = "\C1987_P99\equip\p99_green.paa";
class Attachments
{
Attachment_Sup10 = "P99_Green_SD_DZ";
};
};
class P99_Green_SD_DZ: P99_Black_SD_DZ
{
displayName = $STR_DZ_WPN_P99SD_NAME;
model = "\C1987_P99\P99_green_sd.p3d";
picture = "\C1987_P99\equip\p99_green_sd.paa";
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup10',_id,'P99_Green_DZ'] call player_removeAttachment";
};
};
};
class P99_Silver_DZ: P99_Black_DZ
{
displayName = $STR_DZ_WPN_P99_NAME;
model = "\C1987_P99\P99_silver.p3d";
picture = "\C1987_P99\equip\p99_silver.paa";
class Attachments
{
Attachment_Sup10 = "P99_Silver_SD_DZ";
};
};
class P99_Silver_SD_DZ: P99_Black_SD_DZ
{
displayName = $STR_DZ_WPN_P99SD_NAME;
model = "\C1987_P99\P99_silver_sd.p3d";
picture = "\C1987_P99\equip\p99_silver_sd.paa";
class ItemActions
{
class RemoveSuppressor
{
text = $STR_ATTACHMENT_RMVE_Silencer;
script = "; ['Attachment_Sup10',_id,'P99_Silver_DZ'] call player_removeAttachment";
};
};
};