Add harvestable plants and compost barrels

- Add 8 harvestable plants with proper output - Server Admins can add them to the game
- Add 2 Compost barrels - an empty and a full version
- Re-work of player_harvestPlant to fix a few bugs when different types of harvestable plants are near
- Add harvestable plant output config
This commit is contained in:
A Man
2022-03-18 15:24:37 +01:00
parent 9384e0112c
commit 84064ec893
6 changed files with 248 additions and 59 deletions

View File

@@ -1471,4 +1471,44 @@ class metal_container_2d_kit: CA_Magazine // 2x red
create = "MetalContainer2D_DZ";
};
};
};
class compost_barrel_empty_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_COMPOST_BARREL_EMTPY;
descriptionShort = $STR_EPOCH_COMPOST_BARREL_EMTPY_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_EPOCH_BUILD_COMPOST_BARREL;
script = "spawn player_build;";
require[] = {};
create = "Compost_Barrel_Empty_DZE";
};
};
};
class compost_barrel_full_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_COMPOST_BARREL_FULL;
descriptionShort = $STR_EPOCH_COMPOST_BARREL_FULL_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_EPOCH_BUILD_COMPOST_BARREL;
script = "spawn player_build;";
require[] = {"ItemShovel"};
create = "Compost_Barrel_Full_DZE";
};
};
};