Added Buildable Wood Crate Storage

Construct a wooden crate (5/50/1) for item storage from 6 lumber.
This commit is contained in:
Mochnant
2014-01-12 15:55:03 -05:00
parent b157e3bc7f
commit 9562c319c1
4 changed files with 58 additions and 3 deletions

View File

@@ -1487,6 +1487,27 @@ class CfgMagazines {
};
};
};
class ItemWoodCrateKit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = "Wood Crate";
descriptionShort = "A wood crate that holds a lot of items.";
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
weight = 20;
class ItemActions
{
class Build
{
text = $STR_ACTIONS_BUILD;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "WoodCrate_DZ";
};
};
};
class ItemOilBarrel: CA_Magazine
{
scope = 2;
@@ -3503,6 +3524,15 @@ class CfgMagazines {
output[] = {{"ItemGunRackKit",1}};
input[] = {{"PartWoodLumber",6}};
};
class Crafting7
{
text = $STR_EPOCH_PLAYER_304;
Script = ";['Crafting7','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemToolbox"};
output[] = {{"ItemWoodCrateKit",1}};
input[] = {{"PartWoodLumber",6}};
};
};
};
class PartWoodPlywood: CA_Magazine

View File

@@ -1873,6 +1873,21 @@ class CfgVehicles {
removeoutput[] = {{"ItemGunRackKit",1}};
nounderground = 0;
};
class Fort_Crate_wood;
class WoodCrate_DZ: Fort_Crate_wood
{
scope = 2;
destrType = "DestructBuilding";
offset[] = {0,2.5,0.5};
armor = 200;
displayName = "Wood Crate";
vehicleClass = "Fortifications";
transportMaxMagazines = 50;
transportMaxWeapons = 5;
transportMaxBackpacks = 1;
removeoutput[] = {{"ItemWoodCrateKit",1}};
nounderground = 0;
};
// modular
class MetalFloor_DZ: ModularItems
{