Add AS VAL

This commit is contained in:
A Man
2020-03-06 15:32:31 +01:00
parent 19990e28cd
commit fa520d5cc8
7 changed files with 156 additions and 9 deletions

View File

@@ -43,6 +43,7 @@ weaponsRU[] =
{Loot_WEAPON, 6, RK95_DZ},
{Loot_WEAPON, 6, Groza9_DZ},
{Loot_WEAPON, 6, Groza1_DZ},
{Loot_WEAPON, 6, VAL_DZ},
// Machine Guns
{Loot_WEAPON, 3, RPK74_DZ},

View File

@@ -3,6 +3,7 @@ class 10Rnd_9x39_SP5_VSS: CA_Magazine
{
model = "dayz_epoch_c\models\magazines\VSS_vintorez_mag.p3d";
displayName = $STR_DZ_MAG_10Rnd_9x39_SP5_VSS_NAME;
descriptionShort = $STR_DZ_MAG_10RND_939_VSSVAL_DESC;
cartridgeName = "9x39";
@@ -16,6 +17,7 @@ class 20Rnd_9x39_SP5_VSS: CA_Magazine
{
model = "dayz_epoch_c\models\magazines\VSS_vintorez_mag.p3d";
displayName = $STR_DZ_MAG_20Rnd_9x39_SP5_VSS_NAME;
descriptionShort = $STR_DZ_MAG_20RND_939_VSSVAL_DESC;
cartridgeName = "9x39";

View File

@@ -83,6 +83,7 @@ class Category_22 {
class 30Rnd_762x39_Groza1SD {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class 20Rnd_9x39_Groza9 {type = "trade_items";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class 20Rnd_9x39_Groza9SD {type = "trade_items";buy[] = {3,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class 20Rnd_9x39_SP5_VSS {type = "trade_items";buy[] = {3,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class 20Rnd_762x51_FNFAL {type = "trade_items";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class ACR_30Rnd_680x43 {type = "trade_items";buy[] = {1,"ItemGoldBar"};sell[] = {5,"ItemSilverBar10oz"};};
class ACR_30Rnd_680x43_SD {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};

View File

@@ -397,6 +397,9 @@ class Category_16 {
class Groza9_Sniper_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {15,"ItemGoldBar"};};
class Groza9_GL_Sniper_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {2,"ItemGoldBar10oz"};};
class Groza9_Sniper_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {2,"ItemGoldBar10oz"};};
class VAL_DZ {type = "trade_weapons";buy[] = {3,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};};
class VAL_Kobra_DZ {type = "trade_weapons";buy[] = {-2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};};
class VAL_POS1_DZ {type = "trade_weapons";buy[] = {-2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};};
class AKS74U_DZ {type = "trade_weapons";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class AKS74U_Kobra_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {3,"ItemGoldBar"};};
class AKS74U_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
@@ -421,9 +424,9 @@ class Category_16 {
class AK107_GL_PSO1_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {7,"ItemGoldBar"};};
class AN94_DZ {type = "trade_weapons";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};};
class AN94_GL_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {3,"ItemGoldBar"};};
class FNFAL_DZ {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class FNFAL_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
class FNFAL_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};};
class FNFAL_DZ {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};};
class FNFAL_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {12,"ItemGoldBar"};};
class FNFAL_Holo_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {12,"ItemGoldBar"};};
class M14_DZ {type = "trade_weapons";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};};
class M14_Gh_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {11,"ItemGoldBar"};};
class M14_CCO_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {12,"ItemGoldBar"};};

View File

@@ -26,8 +26,7 @@ class CfgWeapons
#include "Rifles\AS50.hpp"
#include "Rifles\M107.hpp"
#include "Rifles\KSVK.hpp"
#include "Rifles\M4SPR.hpp"
#include "Rifles\VSSVintorez.hpp"
#include "Rifles\M4SPR.hpp"
#include "Rifles\CZ750.hpp"
//Ak107
@@ -53,6 +52,10 @@ class CfgWeapons
#include "Rifles\RPK.hpp"
//VSS
#include "Rifles\VSSVintorez.hpp"
#include "Rifles\VAL.hpp"
class DMR : Rifle
{
class Single;

View File

@@ -0,0 +1,100 @@
class VAL_DZ: Groza9_DZ
{
model = "\RH_aks\RH_asval.p3d";
picture = "\RH_aks\inv\asval.paa";
magazines[] = {"20Rnd_9x39_SP5_VSS","10Rnd_9x39_SP5_VSS"};
handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\Data\Anim\AK.rtm"};
fireLightDuration = 0.0;
fireLightIntensity = 0.0;
displayname = $STR_DZ_WPN_ASVAL_NAME;
descriptionShort = $STR_DZ_WPN_ASVAL_DESC;
modes[] = {"Single","Full"};
class Single: Mode_SemiAuto
{
dispersion = 0.0018;
soundContinuous = 0;
reloadTime = 0.1;
recoil = "recoil_single_primary_4outof10";
recoilProne = "recoil_single_primary_prone_4outof10";
begin1[] = {"\dayz_epoch_c\sounds\weapons\vss.ogg",1.0,1,50};
begin2[] = {"\dayz_epoch_c\sounds\weapons\vss.ogg",1.0,1,50};
soundBegin[] = {"begin1",0.5,"begin2",0.5};
minRange = 2;
minRangeProbab = 0.1;
midRange = 250;
midRangeProbab = 0.7;
maxRange = 500;
maxRangeProbab = 0.05;
};
class Full: Mode_FullAuto
{
dispersion = 0.0018;
soundContinuous = 0;
reloadTime = 0.08;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
begin1[] = {"\dayz_epoch_c\sounds\weapons\vss.ogg",1.0,1,50};
begin2[] = {"\dayz_epoch_c\sounds\weapons\vss.ogg",1.0,1,50};
soundBegin[] = {"begin1",0.5,"begin2",0.5};
minRange = 0;
minRangeProbab = 0.1;
midRange = 60;
midRangeProbab = 0.7;
maxRange = 100;
maxRangeProbab = 0.05;
};
reloadMagazineSound[] = {"\RH_aks\sound\val_reload.wss",0.056234,1,20};
class Attachments
{
Attachment_Kobra = "VAL_Kobra_DZ";
Attachment_PSO1 = "VAL_PSO1_DZ";
};
};
class VAL_Kobra_DZ: VAL_DZ
{
model = "\RH_aks\RH_asvalk.p3d";
picture = "\RH_aks\inv\asvalk.paa";
displayName = $STR_DZ_WPN_ASVAL_Kobra_NAME;
distanceZoomMin = 200;
distanceZoomMax = 200;
class Attachments {};
class ItemActions
{
class RemoveKobra
{
text = $STR_DZ_ATT_KOBRA_RMVE;
script = "; ['Attachment_Kobra',_id,'VAL_DZ'] call player_removeAttachment";
};
};
};
class VAL_PSO1_DZ: VAL_DZ
{
model = "\RH_aks\RH_asvalsp.p3d";
picture = "\RH_aks\inv\asvalsp.paa";
displayName = $STR_DZ_WPN_ASVAL_PSO1_NAME;
opticsFlare = "true";
optics = true;
opticsDisablePeripherialVision = true;
modelOptics = "\ca\weapons\optika_snpiere";
opticsZoomMin = 0.071945;
opticsZoomMax = 0.071945;
distanceZoomMin = 110;
distanceZoomMax = 110;
class ItemActions
{
class RemovePSO1
{
text = $STR_DZ_ATT_PSO1_RMVE;
script = "; ['Attachment_PSO1',_id,'VAL_DZ'] call player_removeAttachment";
};
};
};