Add PDW SD attachment support

This commit is contained in:
A Man
2020-01-27 16:14:49 +01:00
parent e1c922f132
commit 3249dfb5a2
4 changed files with 18 additions and 8 deletions

View File

@@ -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},

View File

@@ -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"};};

View File

@@ -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"

View File

@@ -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";
};
};
*/
};