Add plant patch kits

This commit is contained in:
A Man
2022-03-27 13:07:56 +02:00
parent 59e04523be
commit 29e4a3339e
4 changed files with 242 additions and 1 deletions

View File

@@ -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";
};
};
};

View File

@@ -67,4 +67,5 @@ class CfgMagazines
#include "Buildings\Tent.hpp"
#include "Buildings\Misc.hpp"
#include "Buildings\StaticWeapons.hpp"
#include "Buildings\Plants.hpp"
};

View File

@@ -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 {