mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user