From 4d85c7857484b7e676a5b3aa0e74bc758f1c5e7c Mon Sep 17 00:00:00 2001 From: A Man Date: Thu, 5 Mar 2020 11:40:39 +0100 Subject: [PATCH] Update Bizon - Replace bizon models with the models from Robert Hammer - Add kobra sight to attachment system --- .../CfgServerTrader/Category/Weapons.hpp | 2 + .../Configs/CfgWeapons/Rifles/Bizon.hpp | 54 ++++++++++++++++++- SQF/dayz_code/stringtable.xml | 8 +++ 3 files changed, 62 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp index f8eff747b..4cc20377c 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Weapons.hpp @@ -91,6 +91,8 @@ class Category_14 { class Scorpion_Evo3_CCO_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {22,"ItemSilverBar10oz"};}; class Bizon_DZ {type = "trade_weapons";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};}; class Bizon_SD_DZ {type = "trade_weapons";buy[] = {-1,"ItemGoldBar"};sell[] = {6,"ItemGoldBar"};}; + 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 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"};}; diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/Bizon.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/Bizon.hpp index 8c923ec1b..e172fa00a 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/Bizon.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/Bizon.hpp @@ -1,6 +1,7 @@ class Bizon_DZ : bizon { - model = "z\addons\dayz_communityweapons\bizon\bizon.p3d"; + model = "\rh_aks\RH_bizon.p3d"; + picture = "\rh_aks\inv\bizon.paa"; displayName = $STR_DZ_WPN_BIZON_NAME; magazines[] = @@ -14,14 +15,34 @@ class Bizon_DZ : bizon class Attachments { + Attachment_Kobra = "Bizon_Kobra_DZ"; Attachment_SupBizon = "Bizon_SD_DZ";//left to maintain old attachment suppressor Attachment_Sup9 = "Bizon_SD_DZ"; }; }; +class Bizon_Kobra_DZ : Bizon_DZ +{ + model = "\RH_aks\RH_bizonk.p3d"; + picture = "\RH_aks\inv\bizonk.paa"; + displayName = $STR_DZ_WPN_BIZON_KOBRA_NAME; + + class Attachments {}; + + class ItemActions + { + class RemoveKobra + { + text = $STR_DZ_ATT_KOBRA_RMVE; + script = "; ['Attachment_Kobra',_id,'Bizon_DZ'] call player_removeAttachment"; + }; + }; +}; + class Bizon_SD_DZ : bizon_silenced { - model = "z\addons\dayz_communityweapons\bizon\bizon_sd.p3d"; + model = "\rh_aks\RH_bizonsd.p3d"; + picture = "\rh_aks\inv\bizonsd.paa"; displayName = $STR_DZ_WPN_BIZON_SD_NAME; magazines[] = @@ -33,6 +54,11 @@ class Bizon_SD_DZ : bizon_silenced discreteDistance[] = {50,100,150}; discreteDistanceInitIndex = 1; + class Attachments + { + Attachment_Kobra = "Bizon_Kobra_SD_DZ"; + }; + class ItemActions { class RemoveSuppressor @@ -41,4 +67,28 @@ class Bizon_SD_DZ : bizon_silenced script = "; ['Attachment_Sup9',_id,'Bizon_DZ'] call player_removeAttachment"; }; }; +}; + + +class Bizon_Kobra_SD_DZ : Bizon_SD_DZ +{ + model = "\RH_aks\RH_bizonsdk.p3d"; + picture = "\RH_aks\inv\bizonsdk.paa"; + displayName = $STR_DZ_WPN_BIZON_KOBRA_SD_NAME; + + class Attachments {}; + + class ItemActions + { + class RemoveSuppressor + { + text = $STR_ATTACHMENT_RMVE_Silencer; + script = "; ['Attachment_Sup9',_id,'Bizon_Kobra_DZ'] call player_removeAttachment"; + }; + class RemoveKobra + { + text = $STR_DZ_ATT_KOBRA_RMVE; + script = "; ['Attachment_Kobra',_id,'Bizon_SD_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 57e106e00..72f020cdb 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -11209,6 +11209,14 @@ Bizon SD Бизон ПБС + + Bizon Kobra + Бизон Кобра + + + Bizon Kobra SD + Бизон Кобра ПБС +