From 29e4a3339e9877b3b4e9e89230eaaa6ac700ff99 Mon Sep 17 00:00:00 2001 From: A Man Date: Sun, 27 Mar 2022 13:07:56 +0200 Subject: [PATCH] Add plant patch kits --- .../Configs/CfgMagazines/Buildings/Plants.hpp | 197 ++++++++++++++++++ .../Configs/CfgMagazines/CfgMagazines.hpp | 1 + SQF/dayz_code/Configs/CfgVehicles/Plants.hpp | 2 +- SQF/dayz_code/stringtable.xml | 43 ++++ 4 files changed, 242 insertions(+), 1 deletion(-) create mode 100644 SQF/dayz_code/Configs/CfgMagazines/Buildings/Plants.hpp diff --git a/SQF/dayz_code/Configs/CfgMagazines/Buildings/Plants.hpp b/SQF/dayz_code/Configs/CfgMagazines/Buildings/Plants.hpp new file mode 100644 index 000000000..e4f005acc --- /dev/null +++ b/SQF/dayz_code/Configs/CfgMagazines/Buildings/Plants.hpp @@ -0,0 +1,197 @@ +class Plant_Patch_Pumpkin_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_PUMPKIN; + descriptionShort = $STR_EPOCH_PLANT_PATCH_PUMPKIN_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[] = {"ItemShovel"}; + create = "Plant_Patch_Pumpkin_DZE"; + }; + }; +}; + +class Plant_Patch_Sunflower_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_SUNFLOWER; + descriptionShort = $STR_EPOCH_PLANT_PATCH_SUNFLOWER_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[] = {"ItemShovel"}; + create = "Plant_Patch_Sunflower_DZE"; + }; + }; +}; + +class Plant_Patch_Carrot_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_CARROT; + descriptionShort = $STR_EPOCH_PLANT_PATCH_CARROT_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[] = {"ItemShovel"}; + create = "Plant_Patch_Carrot_DZE"; + }; + }; +}; + +class Plant_Patch_Potato_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_POTATO; + descriptionShort = $STR_EPOCH_PLANT_PATCH_POTATO_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[] = {"ItemShovel"}; + create = "Plant_Patch_Potato_DZE"; + }; + }; +}; + +class Plant_Patch_Hemp_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_HEMP; + descriptionShort = $STR_EPOCH_PLANT_PATCH_HEMP_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[] = {"ItemShovel"}; + create = "Plant_Patch_Hemp_DZE"; + }; + }; +}; + +class Plant_Patch_Tobacco_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_TOBACCO; + descriptionShort = $STR_EPOCH_PLANT_PATCH_TOBACCO_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[] = {"ItemShovel"}; + create = "Plant_Patch_Tobacco_DZE"; + }; + }; +}; + +class Plant_Patch_Tea_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_TEA; + descriptionShort = $STR_EPOCH_PLANT_PATCH_TEA_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[] = {"ItemShovel"}; + create = "Plant_Patch_Tea_DZE"; + }; + }; +}; + +class Plant_Patch_Garlic_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_GARLIC; + descriptionShort = $STR_EPOCH_PLANT_PATCH_GARLIC_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[] = {"ItemShovel"}; + create = "Plant_Patch_Garlic_DZE"; + }; + }; +}; + +class Plant_Patch_Comfrey_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EPOCH_PLANT_PATCH_COMFREY; + descriptionShort = $STR_EPOCH_PLANT_PATCH_COMFREY_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[] = {"ItemShovel"}; + create = "Plant_Patch_Comfrey_DZE"; + }; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgMagazines/CfgMagazines.hpp b/SQF/dayz_code/Configs/CfgMagazines/CfgMagazines.hpp index 94c158dde..abee7a9e1 100644 --- a/SQF/dayz_code/Configs/CfgMagazines/CfgMagazines.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines/CfgMagazines.hpp @@ -67,4 +67,5 @@ class CfgMagazines #include "Buildings\Tent.hpp" #include "Buildings\Misc.hpp" #include "Buildings\StaticWeapons.hpp" + #include "Buildings\Plants.hpp" }; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Plants.hpp b/SQF/dayz_code/Configs/CfgVehicles/Plants.hpp index 5d1bb12b7..613ebe0e2 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Plants.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Plants.hpp @@ -124,7 +124,7 @@ class Plant_Patch_Garlic_DZE : Plant_Patch_Base_DZE { class Plant_Patch_Comfrey_DZE : Plant_Patch_Base_DZE { scope = 2; - displayname = $STR_EPOCH_PLANT_PATCH_GARLIC; + displayname = $STR_EPOCH_PLANT_PATCH_COMFREY; }; class Plant_Pumpkin_DZE : Plant_Patch_Base_DZE { diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 7bdf2dee0..0e30d0bfb 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -35171,43 +35171,86 @@ Kürbisbeet Тыквенный участок + + Pumpkin patch + Kürbisbeet + Тыквенный участок + Sunflower patch Sonnenblumenbeet Подсолнуховый участок + + Sunflower patch + Sonnenblumenbeet + Подсолнуховый участок + Carrot patch Karottenbeet Морковный участок + + Carrot patch + Karottenbeet + Морковный участок + Potato patch Kartoffelbeet Картофельный участок + + Potato patch + Kartoffelbeet + Картофельный участок + Hemp plant patch Hanfpflanzenbeet Конопляный участок + + Hemp plant patch + Hanfpflanzenbeet + Конопляный участок + Tobacco plant patch Tabakpflanzenbeet Табачный участок + + Tobacco plant patch + Tabakpflanzenbeet + Табачный участок + Tea plant patch Teepflanzenbeet Чайный участок + + Tea plant patch + Teepflanzenbeet + Чайный участок + Garlic patch Knoblauchbeet + + Garlic patch + Knoblauchbeet + Comfrey patch Beinwellbeet + + + Comfrey patch + Beinwellbeet Pumpkin Plant