Add half and quarter metal floors

Models made by @Helion4

This also changes the metal floor recipe. A metal floor needs 2 half metal floors now. And a half metal floors needs 2 quarter floors. Metal panel are no longer used to craft metal floors.
This commit is contained in:
AirwavesMan
2020-12-04 20:24:15 +01:00
parent 10ce6cb2cc
commit f9593f3fdf
7 changed files with 125 additions and 11 deletions

View File

@@ -20,6 +20,68 @@ class metal_floor_kit: CA_Magazine
};
};
class metal_floor_half_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_METALFLOORHALF;
descriptionShort = $STR_EPOCH_METALFLOORHALF
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 = "MetalFloor_Half_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_228;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop","fire"};
requiretools[] = {"ItemToolbox","ItemCrowbar","ItemSledge"};
output[] = {{"metal_floor_kit",1}};
input[] = {{"metal_floor_half_kit",2}};
};
};
};
class metal_floor_quarter_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_METALFLOORQUARTER;
descriptionShort = $STR_EPOCH_METALFLOORQUARTER;
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 = "MetalFloor_Quarter_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_228_1;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop","fire"};
requiretools[] = {"ItemToolbox","ItemCrowbar","ItemSledge"};
output[] = {{"metal_floor_half_kit",1}};
input[] = {{"metal_floor_quarter_kit",2}};
};
};
};
class metal_pillar_kit: CA_Magazine
{
scope = 2;