Add MAT-49

Thx @helion4
This commit is contained in:
A Man
2020-04-16 16:43:28 +02:00
parent 052becb448
commit 0957098c1c
9 changed files with 103 additions and 3 deletions

View File

@@ -186,7 +186,8 @@ AmmoEU[] =
{Loot_MAGAZINE, 6, 25Rnd_45ACP_UMPSD},
{Loot_MAGAZINE, 6, 50Rnd_57x28_P90},
{Loot_MAGAZINE, 6, 50Rnd_57x28_P90SD},
{Loot_MAGAZINE, 6, 32Rnd_9x19_STEN},
{Loot_MAGAZINE, 6, 32Rnd_9x19_STEN},
{Loot_MAGAZINE, 6, 32Rnd_9x19_MAT49},
// Assault rifles
{Loot_MAGAZINE, 10, 30Rnd_556x45_G36},

View File

@@ -164,6 +164,7 @@ weaponsEU[] =
{Loot_WEAPON, 7, P90_DZ},
{Loot_WEAPON, 7, P90_SD_DZ},
{Loot_WEAPON, 7, Sten_MK_DZ},
{Loot_WEAPON, 7, MAT49_DZ},
// Assault Rifles
{Loot_WEAPON, 5, G36A_Camo_DZ},

View File

@@ -400,4 +400,16 @@ class 32Rnd_9x19_STEN: 30Rnd_9x19_MP5
model = "\z\addons\dayz_epoch_w\sten\h4_sten_mag.p3d";
initSpeed = 700;
count = 32;
};
/* MAT 49 */
class 32Rnd_9x19_MAT49: 30Rnd_9x19_MP5
{
displayName = $STR_DZ_MAG_32RND_9x19mm_MAT49_NAME;
descriptionShort = $STR_DZ_MAG_32RND_9x19mm_MAT49_DESC;
picture = "\z\addons\dayz_epoch_w\sten\data\m_sten_CA.paa";
model = "\z\addons\dayz_epoch_w\sten\h4_sten_mag.p3d";
initSpeed = 600;
count = 32;
};

View File

@@ -9,7 +9,7 @@
#include "22lfB.hpp" //Ruger Mk22
#include "9x17.hpp" //PPK
#include "9x18.hpp" //Makarov
#include "9x19.hpp" //MP5, PDW, Bizon, M9, G17, CZ75, Browning HP, P226, P38, Sten MK
#include "9x19.hpp" //MP5, PDW, Bizon, M9, G17, CZ75, Browning HP, P226, P38, Sten MK, MAT-49
#include "10x22.hpp" //P99
#include "45ACP.hpp" //Colt M1911, Revolver
#include "44Magnum.hpp" //Taurus Raging Bull, Colt Anaconda

View File

@@ -41,6 +41,7 @@ class Category_20 {
class 30Rnd_9x19_TMP {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
class 30Rnd_9x19_TMPSD {type = "trade_items";buy[] = {4,"ItemSilverBar10oz"};sell[] = {2,"ItemSilverBar10oz"};};
class 32Rnd_9x19_STEN {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
class 32Rnd_9x19_MAT49 {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
class 64Rnd_9x19_Bizon {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};
class 64Rnd_9x19_SD_Bizon {type = "trade_items";buy[] = {4,"ItemSilverBar10oz"};sell[] = {2,"ItemSilverBar10oz"};};
class 40Rnd_46x30_mp7 {type = "trade_items";buy[] = {2,"ItemSilverBar10oz"};sell[] = {1,"ItemSilverBar10oz"};};

View File

@@ -97,6 +97,7 @@ class Category_14 {
class Bizon_Kobra_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
class Bizon_Kobra_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {8,"ItemGoldBar"};};
class Sten_MK_DZ {type = "trade_weapons";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class MAT49_DZ {type = "trade_weapons";buy[] = {3,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class MP7_DZ {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class MP7_FL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {5,"ItemGoldBar"};};
class MP7_MFL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};

View File

@@ -170,6 +170,7 @@ class CfgWeapons
#include "Rifles\UMP.hpp"
#include "Rifles\P90.hpp"
#include "Rifles\Sten.hpp"
#include "Rifles\MAT49.hpp"
class M16A2;
class M16A2GL;

View File

@@ -0,0 +1,52 @@
class MAT49_DZ: MP5A5
{
scope = public;
model = "\z\addons\dayz_epoch_w\mat49\h4_mat49";
displayName = $STR_DZ_WPN_MAT49_NAME;
descriptionShort = $STR_DZ_WPN_MAT49_DESC;
picture = "\z\addons\dayz_epoch_w\mat49\data\W_mat49_CA.paa";
magazines[] = {32Rnd_9x19_MAT49};
fireLightDuration = 0.000;
fireLightIntensity = 0.000;
drySound[] = {"Ca\sounds\Weapons\rifles\dry",db-50,1,10};
reloadMagazineSound[] = {"ca\sounds\weapons\rifles\reload-m16-3",db-25,1,25};
distanceZoomMin = 50;
distanceZoomMax = 50;
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\data\Anim\HKMP5.rtm"};
modes[] = {Single, FullAuto};
class Single: Mode_SemiAuto
{
begin1[] = {"ca\sounds\weapons\rifles\Bizon_single1", db5, 1,1000};
begin2[] = {"ca\sounds\weapons\rifles\Bizon_single2", db5, 1,1000};
soundBegin[] = {begin1,0.5, begin2,0.5};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
dispersion = 0.003;
minRange = 2;
minRangeProbab = 0.25;
midRange = 20;
midRangeProbab = 0.7;
maxRange = 50;
maxRangeProbab = 0.05;
};
class FullAuto: Mode_FullAuto
{
begin1[]={"ca\sounds\weapons\rifles\Bizon_single1", db5, 1,1000};
begin2[]={"ca\sounds\weapons\rifles\Bizon_single2", db5, 1,1000};
soundBegin[]={begin1,0.5, begin2,0.5};
soundContinuous = 0;
reloadTime = 0.1;
ffCount =1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
aiRateOfFire = 0.001;
dispersion = 0.003; //0.007;
minRange = 0;
minRangeProbab = 0.20;
midRange = 7;
midRangeProbab = 0.7;
maxRange = 15;
maxRangeProbab = 0.05;
};
};