Thx @SyNcRoNiCzZ
This commit is contained in:
A Man
2020-01-29 00:58:41 +01:00
parent 4fc6128443
commit bb16950c53
10 changed files with 216 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ weaponsRU[] =
// Pistols
{Loot_WEAPON, 2, Makarov_DZ},
{Loot_WEAPON, 1, Makarov_SD_DZ},
{Loot_WEAPON, 2, P99_Silver_DZ},
{Loot_WEAPON, 1, P99_Silver_SD_DZ},
// Bolt action rifles and shotguns
{Loot_WEAPON, 5, Saiga12K},
@@ -42,6 +44,8 @@ weaponsUS[] =
// Pistols
{Loot_WEAPON, 1, M9_DZ},
{Loot_WEAPON, 2, M9_SD_DZ},
{Loot_WEAPON, 2, P99_Green_DZ},
{Loot_WEAPON, 1, P99_Green_SD_DZ},
// Bolt action rifles and shotguns
{Loot_WEAPON, 5, Remington870_DZ},
@@ -82,6 +86,8 @@ weaponsEU[] =
// Pistols
{Loot_WEAPON, 2, G17_DZ},
{Loot_WEAPON, 1, G17_SD_DZ},
{Loot_WEAPON, 2, P99_Black_DZ},
{Loot_WEAPON, 1, P99_Black_SD_DZ},
// Bolt action rifles and shotguns
{Loot_WEAPON, 5, LeeEnfield_DZ},

View File

@@ -0,0 +1,24 @@
class 15Rnd_10x22_p99: CA_Magazine
{
scope = 2;
displayName = $STR_DZ_MAG_15RND_P99_NAME;
picture = "\C1987_P99\equip\mag.paa";
model = "\C1987_P99\mag.p3d";
type = 16;
ammo = "B_10x22_Ball";
count = 15;
initSpeed = 408;
descriptionShort = $STR_DZ_MAG_15RND_P99_DESC;
};
class 15Rnd_10x22_p99_sd: CA_Magazine
{
scope = 2;
displayName = $STR_DZ_MAG_15RND_P99SD_NAME;
picture = "\C1987_P99\equip\mag.paa";
model = "\C1987_P99\mag.p3d";
type = 16;
ammo = "B_10x22_SD";
count = 15;
initSpeed = 408;
descriptionShort = $STR_DZ_MAG_15RND_P99SD_DESC;
};

View File

@@ -8,6 +8,7 @@
#include "9x18.hpp" //Makarov
#include "9x19.hpp" //MP5, PDW, Bizon, M9, G17
#include "10x22.hpp" //P99
#include "45ACP.hpp" //Colt M1911, Revolver
#include "545x39.hpp" //AK74, RPK74
#include "556x45.hpp" //M249, STANAG, G36

View File

@@ -10,6 +10,8 @@ class Category_19 {
class 7Rnd_45ACP_1911 {type = "trade_items";buy[] = {2,"ItemSilverBar"};sell[] = {1,"ItemSilverBar"};};
class 8Rnd_9x18_Makarov {type = "trade_items";buy[] = {2,"ItemSilverBar"};sell[] = {1,"ItemSilverBar"};};
class 8Rnd_9x18_MakarovSD {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
class 15Rnd_10x22_p99 {type = "trade_items";buy[] = {1,"ItemSilverBar10oz"};sell[] = {5,"ItemSilverBar"};};
class 15Rnd_10x22_p99_sd {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
};
//Submachine Gun Ammo

View File

@@ -38,6 +38,12 @@ class Category_13 {
class G17_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {22,"ItemSilverBar10oz"};};
class G17_SD_FL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {32,"ItemSilverBar10oz"};};
class G17_SD_MFL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {42,"ItemSilverBar10oz"};};
class P99_Black_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class P99_Black_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {25,"ItemSilverBar10oz"};};
class P99_Green_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class P99_Green_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {25,"ItemSilverBar10oz"};};
class P99_Silver_DZ {type = "trade_weapons";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class P99_Silver_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {25,"ItemSilverBar10oz"};};
};
//Submachine Guns

View File

@@ -180,6 +180,7 @@ class CfgWeapons
class M9;
class M9SD;
#include "Pistols\M9.hpp"
#include "Pistols\P99.hpp"
class glock17_EP1;
#include "Pistols\G17.hpp"

View File

@@ -0,0 +1,100 @@
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","15Rnd_10x22_p99_sd"};
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_Sup9 = "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_Sup9',_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_Sup9 = "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_Sup9',_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_Sup9 = "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_Sup9',_id,'P99_Silver_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -362,6 +362,27 @@ class CfgAmmo
visiblefire = 16;
};
//P99
class B_10x22_Ball: BulletBase
{
cartridge = "FxCartridge_Small";
cost = 5;
typicalSpeed = 344;
airFriction = -0.0017;
hit = 8.5;
};
class B_10x22_SD: BulletBase
{
cartridge = "FxCartridge_Small";
visibleFire = 0.035;
audibleFire = 0.035;
visibleFireTime = 2;
cost = 1;
typicalSpeed = 265;
airFriction = -0.000955;
hit = 7.5;
};
//MP7
class B_46x30_Ball: BulletBase
{