diff --git a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp index 87922fde6..eb1be9bbb 100644 --- a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp @@ -58,7 +58,7 @@ weaponsUS[] = // Submachine Guns {Loot_WEAPON, 3, PDW_DZ}, - {Loot_WEAPON, 3, UZI_SD_EP1}, + {Loot_WEAPON, 3, PDW_SD_DZ}, // Assault Rifles {Loot_WEAPON, 6, M16A2_DZ}, diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp index 0db8be25d..c3220f156 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp @@ -44,7 +44,7 @@ class Category_13 { class Category_14 { class Sa61_EP1 {type = "trade_weapons";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};}; class PDW_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; - class UZI_SD_EP1 {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; + class PDW_SD_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; class MP5_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar"};sell[] = {2,"ItemSilverBar10oz"};}; class MP5_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {22,"ItemSilverBar10oz"};}; class Bizon_DZ {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; diff --git a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp index dfa08b46d..6d8f8ff57 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp @@ -188,9 +188,10 @@ class CfgWeapons #include "Pistols\Makarov.hpp" class UZI_EP1; + class UZI_SD_EP1; #include "Pistols\PDW.hpp" - class revolver_EP1; + class revolver_EP1; #include "Pistols\Revolver.hpp" #include "Pistols\CZ75.hpp" diff --git a/SQF/dayz_code/Configs/CfgWeapons/Pistols/PDW.hpp b/SQF/dayz_code/Configs/CfgWeapons/Pistols/PDW.hpp index 9ff40bd07..3c5d96e24 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Pistols/PDW.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Pistols/PDW.hpp @@ -1,10 +1,19 @@ class PDW_DZ : UZI_EP1 { - /* //Allow default A2 mags - magazines[] = + class Attachments { - 30Rnd_9x19_UZI, - 30Rnd_9x19_UZI_SD + Attachment_Sup9 = "PDW_SD_DZ"; + }; +}; + +class PDW_SD_DZ : UZI_SD_EP1 +{ + class ItemActions + { + class RemoveSuppressor + { + text = $STR_ATTACHMENT_RMVE_Silencer; + script = "; ['Attachment_Sup9',_id,'PDW_DZ'] call player_removeAttachment"; + }; }; - */ }; \ No newline at end of file