From 559fe496dd0bec38bc564482eade39a8fb7a6460 Mon Sep 17 00:00:00 2001 From: A Man Date: Tue, 25 Feb 2020 23:04:59 +0100 Subject: [PATCH] Update SVD - add SVD with NSPU and Desert Camo with attachment support - the SVD has a new sound now --- .../Configs/CfgLoot/Groups/Attachments.hpp | 2 + .../Configs/CfgLoot/Groups/Weapons.hpp | 1 - .../CfgServerTrader/Category/Weapons.hpp | 5 +- .../Configs/CfgWeapons/Rifles/SVD.hpp | 68 +++++++++++++++++++ SQF/dayz_code/stringtable.xml | 10 ++- 5 files changed, 83 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgLoot/Groups/Attachments.hpp b/SQF/dayz_code/Configs/CfgLoot/Groups/Attachments.hpp index 4f5b303df..1cede12a8 100644 --- a/SQF/dayz_code/Configs/CfgLoot/Groups/Attachments.hpp +++ b/SQF/dayz_code/Configs/CfgLoot/Groups/Attachments.hpp @@ -13,6 +13,8 @@ AttachmentsRU[] = { {Loot_MAGAZINE, 1, Attachment_Kobra}, {Loot_MAGAZINE, 1, Attachment_PSO1}, + {Loot_MAGAZINE, 1, Attachment_NSPU}, + {Loot_MAGAZINE, 1, Attachment_Ghillie_Desert}, {Loot_MAGAZINE, 1, Attachment_Sup9}, {Loot_MAGAZINE, 1, Attachment_Sup10}, {Loot_MAGAZINE, 1, Attachment_Sup545}, diff --git a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp index 19f8f7a03..798470979 100644 --- a/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgLoot/Groups/Weapons.hpp @@ -15,7 +15,6 @@ weaponsRU[] = {Loot_WEAPON, 5, Mosin_PU_DZ}, // Sniper Rifles - {Loot_WEAPON, 4, SVD_des_EP1}, {Loot_WEAPON, 4, SVD_DZ}, {Loot_WEAPON, 4, VSS_vintorez_DZE}, {Loot_WEAPON, 1, KSVK_DZE}, // High value weapon, low spawn chance. diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp index 97885ca13..7a66aa5d0 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp @@ -3,6 +3,7 @@ class Category_12 { class Attachment_BELT {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class Attachment_SA58RIS {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class Attachment_Ghillie {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};}; + class Attachment_Ghillie_Desert {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};}; class Attachment_FL_Pist {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};}; class Attachment_MFL_Pist {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class Attachment_FL {type = "trade_items";buy[] = {2,"ItemGoldBar"};sell[] = {1,"ItemGoldBar"};}; @@ -14,6 +15,7 @@ class Category_12 { class Attachment_ACOG {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; class Attachment_Tws {type = "trade_items";buy[] = {-8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; class Attachment_PSO1 {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; + class Attachment_NSPU {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; class Attachment_Sup9 {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class Attachment_Sup10 {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; class Attachment_Sup45 {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};}; @@ -475,7 +477,8 @@ class Category_17 { class SVD_PSO1_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class SVD_PSO1_Gh_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {11,"ItemGoldBar"};}; // desert camo - class SVD_des_EP1 {type = "trade_weapons";buy[] = {1,"ItemGoldBar10oz"};sell[] = {6,"ItemGoldBar"};}; + class SVD_PSO1_Gh_DES_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {11,"ItemGoldBar"};}; + class SVD_NSPU_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; }; //Light Machine Guns diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/SVD.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/SVD.hpp index bc801bb27..9b0e5c4fa 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/SVD.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/SVD.hpp @@ -4,6 +4,9 @@ class SVD_PSO1_DZ : SVD picture = "\ca\weapons\data\equip\w_svd_ca.paa"; displayName = $STR_DZ_WPN_SVD_PSO1_NAME; + begin1[] = {"\dayz_epoch_c\sounds\weapons\svd.ogg",20,1,2000}; + soundBegin[] = {"begin1",1}; + //weaponInfoType = "RscWeaponEmpty"; //discreteDistance[] = {}; //discreteDistanceInitIndex = 0; @@ -27,6 +30,7 @@ class SVD_PSO1_DZ : SVD class Attachments { Attachment_Ghillie = "SVD_PSO1_Gh_DZ"; + Attachment_Ghillie_Desert = "SVD_PSO1_Gh_DES_DZ"; }; class ItemActions @@ -83,6 +87,7 @@ class SVD_DZ : SVD_PSO1_DZ { Attachment_Ghillie = "SVD_Gh_DZ"; Attachment_PSO1 = "SVD_PSO1_DZ"; + Attachment_NSPU = "SVD_NSPU_DZ"; }; }; @@ -105,4 +110,67 @@ class SVD_Gh_DZ : SVD_DZ script = "; ['Attachment_Ghillie',_id,'SVD_DZ'] call player_removeAttachment"; }; }; +}; + +class SVD_PSO1_Gh_DES_DZ : SVD_PSO1_Gh_DZ +{ + model = "\CorePatch\CorePatch_CCP_63107\models\SVD_des_EP1"; + picture = "\CA\weapons_E\Data\icons\svd_desert_CA.paa"; + displayName = $STR_DZ_WPN_SVD_PSO1_DES_NAME; + + class ItemActions + { + class RemoveGhillie + { + text = $STR_DZ_ATT_GHIL_RMVE; + script = "; ['Attachment_Ghillie_Desert',_id,'SVD_PSO1_DZ'] call player_removeAttachment"; + }; + }; +}; + +class SVD_NSPU_DZ : SVD_PSO1_DZ { + model = "\ca\weapons_E\SVD\SVD_nspu.p3d"; + displayname = "$STR_EP1_DN_SVD_NSPU_EP1"; + picture = "\CA\weapons_E\Data\icons\w_svd_nspu_CA.paa"; + modelOptics = "\Ca\weapons_E\NV_nspu_optic.p3d"; + class OpticsModes + { + class NSPU + { + opticsID = 1; + useModelOptics = 1; + opticsZoomMin = 0.07082153; + opticsZoomMax = 0.07082153; + opticsZoomInit = 0.07082153; + opticsPPEffects[] = {}; + opticsDisablePeripherialVision = 1; + memoryPointCamera = "opticView"; + visionMode[] = {"NVG"}; + opticsFlare = 1; + distanceZoomMin = 300; + distanceZoomMax = 300; + cameraDir = ""; + }; + class Ironsights: NSPU + { + opticsID = 2; + useModelOptics = 0; + opticsFlare = 0; + opticsDisablePeripherialVision = 0; + opticsZoomMin = 0.25; + opticsZoomMax = 1.1; + opticsZoomInit = 0.5; + memoryPointCamera = "eye"; + visionMode[] = {}; + }; + }; + + class ItemActions + { + class RemoveNSPU + { + text = $STR_DZ_ATT_NSPU_RMVE; + script = "; ['Attachment_NSPU',_id,'SVD_DZ'] call player_removeAttachment"; + }; + }; }; \ No newline at end of file diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 8d5b0e5e7..5f20d83af 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -11429,6 +11429,10 @@ SVD PSO-1 Camo СВД ПСО-1 (камуфляж) + + SVD PSO-1 Desert + SVD PSO-1 Wüstentarn + @@ -13634,9 +13638,13 @@ [E] NSPU-Visier - An NSPU scope. + NSPU scope Zielfernrohr vom Typ NSPU. + + Remove NSPU + NSPU entfernen + [A] NV scope [E] NV-Visier