Added DayZ workbench as a buildable object for epoch

Added in for admins to use as an alternative or upgrade to the normal epoch workbench.
This commit is contained in:
seelenapparat
2022-01-02 11:26:25 +01:00
parent 8c16cbd7f0
commit d40fab526b
2 changed files with 43 additions and 0 deletions

View File

@@ -90,6 +90,27 @@ class ItemWorkBench: CA_Magazine
}; };
}; };
class ItemWorkBench_DZE : CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_BLD_name_ItemWorkBench;//"Work Bench (Packed)"
model = "z\addons\dayz_buildings\models\workbench_flat.p3d";
picture = "\z\addons\dayz_buildings\equip\item_workbench.paa"; // add to PBO
descriptionShort = $STR_BLD_desc_ItemWorkBench;//"A Folded Workbench, required for House Building and Some Crafting"
class ItemActions
{
class Build
{
text = $STR_ACTIONS_BUILD;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "WorkBench_DZE";
};
};
};
class wood_ramp_kit: CA_Magazine class wood_ramp_kit: CA_Magazine
{ {
scope = 2; scope = 2;

View File

@@ -27,6 +27,28 @@ class WorkBench_DZ: ModularItems
nounderground = 0; nounderground = 0;
}; };
class WorkBench_DZE : BuiltItems
{
scope = 2;
destrType = "DestructTree";
cost = 100;
offset[] = {0,2,0.5};
model = "z\addons\dayz_buildings\models\workbench.p3d";
icon = "\ca\data\data\Unknown_object.paa";
mapSize = 2;
armor = 400;
displayName = $STR_EPOCH_WORKBENCH;
vehicleClass = "DayZ Epoch Buildables";
maintainBuilding[] = {{"PartWoodLumber",1}};
constructioncount = 1;
removeoutput[] = {{"PartWoodPlywood",1},{"PartWoodLumber",2}};
requireplot = 0;
nounderground = 0;
transportMaxWeapons = 10;
transportMaxMagazines = 25;
transportMaxBackpacks = 1;
};
class FuelPump_DZ: BuiltItems class FuelPump_DZ: BuiltItems
{ {
scope = 2; scope = 2;