mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-09 01:32:53 +03:00
Add USAS-12
Thx @helion4
This commit is contained in:
@@ -46,6 +46,10 @@ AmmoCZ[] = {
|
||||
{Loot_MAGAZINE, 1, 10Rnd_762x51_CZ750},
|
||||
{Loot_MAGAZINE, 3, 20Rnd_762x51_B_SCAR},
|
||||
|
||||
// Shotgun
|
||||
{Loot_MAGAZINE, 1, 20Rnd_B_Usas12_74Slug},
|
||||
{Loot_MAGAZINE, 1, 20Rnd_B_Usas12_Pellets},
|
||||
|
||||
// Submachine guns
|
||||
{Loot_MAGAZINE, 3, 30Rnd_9x19_MP5},
|
||||
{Loot_MAGAZINE, 3, 30Rnd_9x19_MP5SD},
|
||||
|
||||
@@ -215,6 +215,9 @@ weaponsCZ[] =
|
||||
{Loot_WEAPON, 2, CZ75SP_DZ},
|
||||
{Loot_WEAPON, 1, CZ75SP_SD_DZ},
|
||||
|
||||
// Bolt action rifles and shotguns
|
||||
{Loot_WEAPON, 5, USAS12_DZ},
|
||||
|
||||
// Sniper Rifles
|
||||
{Loot_WEAPON, 3, CZ750_DZ},
|
||||
{Loot_WEAPON, 3, M110_NV_DZ}, // Technically a US rifle, but the CZ group does not have a DMR type rifle.
|
||||
|
||||
@@ -205,3 +205,15 @@ class 8Rnd_B_Saiga12_Pellets: CA_Magazine
|
||||
COMBINE_MAG
|
||||
};
|
||||
};
|
||||
|
||||
class 20Rnd_B_Usas12_74Slug: 8Rnd_B_Saiga12_74Slug {
|
||||
displayName = $STR_DZ_MAG_20RND_USAS12_SLUG_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_20RND_USAS12_SLUG_DESC;
|
||||
count = 20;
|
||||
};
|
||||
|
||||
class 20Rnd_B_Usas12_Pellets: 8Rnd_B_Saiga12_Pellets {
|
||||
displayName = $STR_DZ_MAG_20RND_USAS12_PELLETS_NAME;
|
||||
descriptionShort = $STR_DZ_MAG_20RND_USAS12_PELLETS_DESC;
|
||||
count = 20;
|
||||
};
|
||||
|
||||
@@ -4,6 +4,7 @@ class Category_11 {
|
||||
class MeleeBaseballbatNails {type = "trade_weapons";buy[] = {-2,"ItemSilverBar"};sell[] = {2,"ItemSilverBar"};};
|
||||
class Saiga12K {type = "trade_weapons";buy[] = {3,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
|
||||
class AA12_PMC {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {5,"ItemGoldBar"};};
|
||||
class USAS12_DZ {type = "trade_weapons";buy[] = {7,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
|
||||
class revolver_gold_EP1 {type = "trade_weapons";buy[] = {5,"ItemGoldBar10oz"};sell[] = {2,"ItemGoldBar10oz"};};
|
||||
class Colt_Anaconda_Gold_DZ {type = "trade_weapons";buy[] = {9,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar10oz"};};
|
||||
class SVD_Gold_DZ {type = "trade_weapons";buy[] = {1,"ItemBriefcase100oz"};sell[] = {5,"ItemGoldBar10oz"};};
|
||||
@@ -13,6 +14,8 @@ class Category_11 {
|
||||
class MAAWS {type = "trade_weapons";buy[] = {-8,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};};
|
||||
class 8Rnd_B_Saiga12_74Slug {type = "trade_items";buy[] = {5,"ItemSilverBar"};sell[] = {3,"ItemSilverBar"};};
|
||||
class 8Rnd_B_Saiga12_Pellets {type = "trade_items";buy[] = {5,"ItemSilverBar"};sell[] = {3,"ItemSilverBar"};};
|
||||
class 20Rnd_B_Usas12_74Slug {type = "trade_items";buy[] = {8,"ItemSilverBar"};sell[] = {5,"ItemSilverBar"};};
|
||||
class 20Rnd_B_Usas12_Pellets {type = "trade_items";buy[] = {8,"ItemSilverBar"};sell[] = {5,"ItemSilverBar"};};
|
||||
class 20Rnd_B_AA12_Pellets {type = "trade_items";buy[] = {8,"ItemSilverBar"};sell[] = {5,"ItemSilverBar"};};
|
||||
class 20Rnd_B_AA12_74Slug {type = "trade_items";buy[] = {8,"ItemSilverBar"};sell[] = {5,"ItemSilverBar"};};
|
||||
class 1Rnd_Bolt_Explosive {type = "trade_items";buy[] = {4,"ItemSilverBar"};sell[] = {2,"ItemSilverBar"};};
|
||||
|
||||
@@ -198,6 +198,7 @@ class CfgWeapons
|
||||
#include "Rifles\MR43.hpp"
|
||||
#include "Rifles\Winchester1866.hpp"
|
||||
#include "Rifles\Remington870.hpp"
|
||||
#include "Rifles\Usas12.hpp"
|
||||
#include "Rifles\Crossbow.hpp"
|
||||
#include "Rifles\L115A3.hpp"
|
||||
#include "Rifles\MSR.hpp"
|
||||
|
||||
61
SQF/dayz_code/Configs/CfgWeapons/Rifles/Usas12.hpp
Normal file
61
SQF/dayz_code/Configs/CfgWeapons/Rifles/Usas12.hpp
Normal file
@@ -0,0 +1,61 @@
|
||||
class Saiga12K;
|
||||
class USAS12_DZ: Saiga12K
|
||||
{
|
||||
scope = public;
|
||||
displayName = $STR_DZ_WPN_USAS12_NAME;
|
||||
descriptionShort = $STR_DZ_WPN_USAS12_DESC;
|
||||
model = "\z\addons\dayz_epoch_w\usas12\h4_usas12.p3d";
|
||||
picture ="\z\addons\dayz_epoch_w\usas12\data\w_usas_ca.paa";
|
||||
magazines[] = {20Rnd_B_Usas12_74Slug, 20Rnd_B_Usas12_Pellets};
|
||||
optics = 1;
|
||||
modelOptics = "-";
|
||||
distanceZoomMin = 50;
|
||||
distanceZoomMax = 50;
|
||||
bullet1[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_metal_1", db-20, 1,15};
|
||||
bullet2[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_metal_2", db-20, 1,15};
|
||||
bullet3[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_metal_3", db-15, 1,15};
|
||||
bullet4[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_metal_4", db-15, 1,15};
|
||||
bullet5[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_1", db-20, 1,15};
|
||||
bullet6[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_2", db-20, 1,15};
|
||||
bullet7[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_3", db-20, 1,15};
|
||||
bullet8[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_4", db-20, 1,15};
|
||||
bullet9[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_1", db-40, 1,15};
|
||||
bullet10[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_2", db-40, 1,15};
|
||||
bullet11[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_3", db-40, 1,15};
|
||||
bullet12[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun_patrona_dirt_4", db-40, 1,15};
|
||||
soundBullet[] = {bullet1, 0.083, bullet2, 0.083, bullet3, 0.083, bullet4, 0.083, bullet5, 0.083, bullet6, 0.083, bullet7, 0.083, bullet8, 0.083, bullet9, 0.083, bullet10, 0.083, bullet11, 0.083, bullet12, 0.083};
|
||||
fireSpreadAngle = 0.7848246;
|
||||
modes[] = {"Single", "FullAuto"};
|
||||
class Single: Mode_SemiAuto
|
||||
{
|
||||
begin1[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun1", db5, 1,1200};
|
||||
begin2[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun4", db5, 1,1200};
|
||||
soundBegin[] = {begin1,0.5, begin2,0.5};
|
||||
dispersion = 0.002;
|
||||
reloadTime = 0.2;
|
||||
recoil = "recoil_single_primary_6outof10";
|
||||
recoilProne = "recoil_single_primary_prone_6outof10";
|
||||
minRange = 0;
|
||||
minRangeProbab = 0.50;
|
||||
midRange = 60;
|
||||
midRangeProbab = 0.20;
|
||||
maxRange = 100;
|
||||
maxRangeProbab = 0.03;
|
||||
};
|
||||
class FullAuto: Mode_FullAuto
|
||||
{
|
||||
begin1[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun1", db5, 1,1200};
|
||||
begin2[] = {"Ca\Sounds_PMC\Weapons_PMC\SHOTGUN\shotgun4", db5, 1,1200};
|
||||
soundBegin[] = {begin1,0.5, begin2,0.5};
|
||||
dispersion = 0.003;
|
||||
reloadTime = 0.2;
|
||||
recoil = "recoil_single_primary_6outof10";
|
||||
recoilProne = "recoil_single_primary_prone_6outof10";
|
||||
minRange = 0;
|
||||
minRangeProbab = 0.60;
|
||||
midRange = 40;
|
||||
midRangeProbab = 0.15;
|
||||
maxRange = 70;
|
||||
maxRangeProbab = 0.02;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user