From b88830bfb075dfcf3112bb4b97cd9be6e0a025ec Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Wed, 16 Dec 2020 17:30:52 +0100 Subject: [PATCH] Add advanced WorkBench Model made by @Helion4 --- .../Configs/CfgMagazines/Buildings/Misc.hpp | 42 +++++-- .../Configs/CfgMagazines/Items/Wood.hpp | 9 ++ SQF/dayz_code/stringtable.xml | 107 ++++++++++++++++++ 3 files changed, 147 insertions(+), 11 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp b/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp index 8a4c5ce1c..ff83e5af1 100644 --- a/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp @@ -42,6 +42,28 @@ class workbench_kit: CA_Magazine }; }; +class advanced_workBench_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_WORKBENCH_ADVANCED; + descriptionShort = $STR_EPOCH_WORKBENCH_ADVANCED_DESC; + model = "\z\addons\dayz_epoch\models\supply_crate.p3d"; + picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa"; + + class ItemActions + { + class Build + { + text = $STR_ACTIONS_BUILD; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "Advanced_WorkBench_DZ"; + }; + }; +}; + // DayZ Mod workbench class ItemWorkBench : CA_Magazine { @@ -452,27 +474,25 @@ class ItemScaffoldingKit: CA_Magazine }; }; -/* - -class cook_tripod_kit: CA_Magazine +class office_chair_kit: CA_Magazine { scope = 2; count = 1; - displayName = $STR_ITEM_NAME_COOKINGTRIPOD; - descriptionShort = $STR_ITEM_DESC_COOKINGTRIPOD; + type = 256; + displayName = $STR_EPOCH_WOODBENCH; + descriptionShort = $STR_EPOCH_WOODBENCH; model = "\z\addons\dayz_epoch\models\supply_crate.p3d"; - picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa"; - + picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa"; + class ItemActions { class Build { text = $STR_ACTIONS_BUILD; script = "spawn player_build;"; - require[] = {}; - create = "CookTripod_DZ"; + require[] = {"ItemToolbox"}; + create = "ParkBench_DZ"; }; - }; + }; }; -*/ \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgMagazines/Items/Wood.hpp b/SQF/dayz_code/Configs/CfgMagazines/Items/Wood.hpp index cfdfa6a77..76f6d626a 100644 --- a/SQF/dayz_code/Configs/CfgMagazines/Items/Wood.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines/Items/Wood.hpp @@ -103,6 +103,15 @@ class ItemPlank : CA_Magazine requiretools[] = {"ItemToolbox","Handsaw_DZE"}; output[] = {{"bulk_empty",1}}; input[] = {{"ItemPlank",2},{"PartGeneric",1}}; + }; + class Crafting3 + { + text = $STR_EPOCH_PLAYER_260_1; + script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox","Handsaw_DZE","Hammer_DZE"}; + output[] = {{"advanced_workBench_kit",1}}; + input[] = {{"ItemPlank",4},{"PartWoodPlywood",4},{"equip_nails",2}}; }; }; }; diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 3d9a095a5..f1d0cd4b4 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -23305,6 +23305,10 @@ Создать: Верстак Vyrobit Pracovní stůl + + Craft Advanced Workbench + Verbesserte Werkbank herstellen + Craft Shack Schuppen herstellen @@ -25806,6 +25810,14 @@ Werkbank: Wird für Handwerksarbeiten benötigt. Верстак: Используется для создания предметов. + + Advanced Workbench + Verbesserte Werkbank + + + Advanced Workbench with tools for bigger buildings to craft. + Verbesserte Werkbank mit Werkzeugen für größere Handwerksarbeiten. + Wooden ramp can be used to get air. Eine Holzrampe, die als Sprungschanze verwendet werden kann. @@ -31154,6 +31166,101 @@ Close Gate Tor schließen Закрыть ворота + + + Stone Oven + Steinofen + + + A small stone oven that can be used for cooking. + Ein kleiner Steinofen, welcher zum Kochen benutzt werden kann. + + + Commode + Kommode + + + A small commode that looks nice and can hold a few items. + Eine kleine Kommode, welche schön aussieht und in der einige Gegenstände verstaut werden können. + + + Wardrobe + Kleiderschrank + + + A big wardrobe that can hold a few items. + Ein großer Kleiderschrank, in welchem einige Gegenstände verstaut werden können. + + + Fridge + Kühlschrank + + + A small fridge that can hold and cold a few items. + Ein kleiner Kühlschrank, in welchem einige Gegenstände gekühlt und verstaut werden können. + + + Washing Machine + Waschmaschine + + + A small washing machine that can wash and hold a few items. + Eine kleine Waschmaschine, in welcher gewaschen oder einige Gegenstände gelagert werden können. + + + Server Rack + Serverschrank + + + A big server rack with many active server machines. + Ein großer Serverschrankmit vielen aktiven Servern. + + + ATM + Geldautomat + + + An ATM to deposit and withdraw currency. + Ein Geldautomat zum Abheben und Einzahlen einer Währung. + + + Armchair + Sessel + + + A comfortable armchair that is a good place to hide some items secretly. + Ein gemütlicher Sessel, in welchem gut ein paar Gegenstände versteckt werden können. + + + Sofa + + + A comfortable sofa that is a good place to hide some items secretly. + Ein gemütliches Sofa, in welchem gut ein paar Gegenstände versteckt werden können. + + + Neo Geo Arcade + Neo Geo Spielautomat + + + An Neo Geo Arcade to relax a bit. + Ein Neo Geo Spielautomat zum Entspannen. + + + Old Vending-Machine + Alter Verkaufsautomat + + + An old vending-machine perhaps it still works. + Ein alter Verkaufsautomat, welcher vielleicht noch funktioniert. + + + Vending-Machine + Verkaufsautomat + + + A vending-machine perhaps it still works. + Ein Verkaufsautomat, welcher vielleicht noch funktioniert.