mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-10 18:22:52 +03:00
Add upgradable storage
Gun rack, wooden crate, wood shack, wooden shed and storage shed can be upgraded to a versiom with more gear slots now.
This commit is contained in:
@@ -42,6 +42,28 @@ class wooden_shed_kit: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class wooden_shed_kit2: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_NICEWOODSHED2;
|
||||
descriptionShort = $STR_EPOCH_NICEWOODSHED_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[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "Wooden_shed2_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class wood_shack_kit: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
@@ -64,6 +86,28 @@ class wood_shack_kit: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class wood_shack_kit2: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_WOODSHACK2;
|
||||
descriptionShort = $STR_EPOCH_WOODSHACK;
|
||||
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[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "WoodShack2_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class storage_shed_kit: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
@@ -86,12 +130,34 @@ class storage_shed_kit: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class storage_shed_kit2: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_STORAGESHED2;
|
||||
descriptionShort = $STR_EPOCH_STORAGESHED_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[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "StorageShed2_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemGunRackKit: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_GUNRACKKIT;
|
||||
displayName = $STR_EPOCH_GUNRACK;
|
||||
descriptionShort = $STR_EPOCH_GUNRACKKIT_DESC;
|
||||
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
|
||||
@@ -107,6 +173,30 @@ class ItemGunRackKit: CA_Magazine
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemGunRackKit2: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_GUNRACK2;
|
||||
descriptionShort = $STR_EPOCH_GUNRACKKIT2_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[] = {"ItemToolbox"};
|
||||
create = "GunRack2_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
class ItemWoodCrateKit: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
@@ -129,6 +219,28 @@ class ItemWoodCrateKit: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class ItemWoodCrateKit2: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_WOODCRATE2;
|
||||
descriptionShort = $STR_EPOCH_WOODCRATE_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[] = {"ItemToolbox"};
|
||||
create = "WoodCrate2_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemVault: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
|
||||
@@ -79,7 +79,7 @@ class ItemPole: CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class ItemMetalSheet: CA_Magazine //Construection,farm,indestrial,castle
|
||||
class ItemMetalSheet: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -110,7 +110,7 @@ class equip_metal_sheet_rusted : CA_Magazine {
|
||||
type = 256;
|
||||
};
|
||||
|
||||
class ItemRSJ: CA_Magazine //Construection,farm,indestrial,castle
|
||||
class ItemRSJ: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
|
||||
@@ -11,7 +11,24 @@ class GunRack_DZ: Gunrack1
|
||||
offset[] = {0,2.5,0.5};
|
||||
removeoutput[] = {{"ItemGunRackKit",1}};
|
||||
nounderground = 0;
|
||||
upgradeBuilding[] = {"GunRack2_DZ",{"ItemToolbox"},{{"ItemPlank",4},{"equip_nails",1}}};
|
||||
};
|
||||
|
||||
class GunRack2_DZ: Gunrack1
|
||||
{
|
||||
armor = 400;
|
||||
scope = public;
|
||||
displayName = $STR_EPOCH_GUNRACK2;
|
||||
vehicleClass = "DayZ Epoch Buildables";
|
||||
transportMaxWeapons = 40;
|
||||
transportMaxMagazines = 20;
|
||||
transportMaxBackpacks = 0;
|
||||
offset[] = {0,2.5,0.5};
|
||||
removeoutput[] = {{"ItemGunRackKit2",1}};
|
||||
nounderground = 0;
|
||||
constructioncount = 2;
|
||||
};
|
||||
|
||||
class Fort_Crate_wood;
|
||||
class WoodCrate_DZ: Fort_Crate_wood
|
||||
{
|
||||
@@ -26,6 +43,23 @@ class WoodCrate_DZ: Fort_Crate_wood
|
||||
transportMaxBackpacks = 1;
|
||||
removeoutput[] = {{"ItemWoodCrateKit",1}};
|
||||
nounderground = 0;
|
||||
upgradeBuilding[] = {"WoodCrate2_DZ",{"ItemToolbox"},{{"PartWoodPlywood",2},{"ItemPlank",2},{"equip_nails",1}}};
|
||||
};
|
||||
|
||||
class WoodCrate2_DZ: Fort_Crate_wood
|
||||
{
|
||||
scope = public;
|
||||
destrType = "DestructBuilding";
|
||||
offset[] = {0,2.5,0.5};
|
||||
armor = 400;
|
||||
displayName = $STR_EPOCH_WOODCRATE2;
|
||||
vehicleClass = "DayZ Epoch Buildables";
|
||||
transportMaxMagazines = 100;
|
||||
transportMaxWeapons = 10;
|
||||
transportMaxBackpacks = 2;
|
||||
removeoutput[] = {{"ItemWoodCrateKit2",1}};
|
||||
nounderground = 0;
|
||||
constructioncount = 2;
|
||||
};
|
||||
|
||||
class Land_KBud;
|
||||
@@ -54,7 +88,21 @@ class StorageShed_DZ: Land_Shed_M01
|
||||
transportMaxWeapons = 40;
|
||||
transportMaxBackpacks = 20;
|
||||
constructioncount = 6;
|
||||
upgradeBuilding[] = {"StorageShed2_DZ",{"ItemToolbox","ItemCrowbar","ItemSledge"},{{"equip_metal_sheet",4},{"ItemMetalSheet",2},{"ItemScrews",2}}};
|
||||
};
|
||||
class StorageShed2_DZ: Land_Shed_M01
|
||||
{
|
||||
armor = 3200;
|
||||
scope = public;
|
||||
offset[] = {0,4,1};
|
||||
displayName = $STR_EPOCH_STORAGESHED2;
|
||||
vehicleClass = "DayZ Epoch Buildables";
|
||||
transportMaxMagazines = 800;
|
||||
transportMaxWeapons = 80;
|
||||
transportMaxBackpacks = 40;
|
||||
constructioncount = 12;
|
||||
};
|
||||
|
||||
class Land_kulna;
|
||||
class WoodShack_DZ: Land_kulna
|
||||
{
|
||||
@@ -67,21 +115,53 @@ class WoodShack_DZ: Land_kulna
|
||||
transportMaxMagazines = 100;
|
||||
transportMaxWeapons = 10;
|
||||
transportMaxBackpacks = 5;
|
||||
constructioncount = 5;
|
||||
constructioncount = 4;
|
||||
nounderground = 0;
|
||||
upgradeBuilding[] = {"WoodShack2_DZ",{"ItemToolbox"},{{"PartWoodPlywood",4},{"equip_nails",2}}};
|
||||
};
|
||||
class WoodShack2_DZ: Land_kulna
|
||||
{
|
||||
scope = public;
|
||||
destrType = "DestructBuilding";
|
||||
offset[] = {0,4,1.3};
|
||||
armor = 1600;
|
||||
displayName = $STR_EPOCH_WOODSHACK2;
|
||||
vehicleClass = "DayZ Epoch Buildables";
|
||||
transportMaxMagazines = 200;
|
||||
transportMaxWeapons = 20;
|
||||
transportMaxBackpacks = 10;
|
||||
constructioncount = 8;
|
||||
nounderground = 0;
|
||||
};
|
||||
|
||||
class Land_Shed_wooden;
|
||||
class Wooden_shed_DZ: Land_Shed_wooden
|
||||
{
|
||||
scope = public;
|
||||
destrType = "DestructBuilding";
|
||||
//cost = 100;
|
||||
offset[] = {0,5,1};
|
||||
armor = 800;
|
||||
armor = 1000;
|
||||
displayName = $STR_EPOCH_NICEWOODSHED;
|
||||
vehicleClass = "DayZ Epoch Buildables";
|
||||
transportMaxMagazines = 200;
|
||||
transportMaxWeapons = 20;
|
||||
transportMaxBackpacks = 10;
|
||||
nounderground = 0;
|
||||
constructioncount = 5;
|
||||
upgradeBuilding[] = {"Wooden_shed2_DZ",{"ItemToolbox"},{{"PartWoodPlywood",8},{"equip_nails",2}}};
|
||||
};
|
||||
|
||||
class Wooden_shed2_DZ: Land_Shed_wooden
|
||||
{
|
||||
scope = public;
|
||||
destrType = "DestructBuilding";
|
||||
offset[] = {0,5,1};
|
||||
armor = 2000;
|
||||
displayName = $STR_EPOCH_NICEWOODSHED2;
|
||||
vehicleClass = "DayZ Epoch Buildables";
|
||||
transportMaxMagazines = 400;
|
||||
transportMaxWeapons = 40;
|
||||
transportMaxBackpacks = 20;
|
||||
nounderground = 0;
|
||||
constructioncount = 10;
|
||||
};
|
||||
Reference in New Issue
Block a user