Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgMagazines/Items/Tent.hpp
A Man 73289a69a6 Update tents
equip_tent_poles are now in the loot tables and can be used for tent crafting.
The recipe for crafting tents and nettings has changed a bit. Instead of poles, tent poles are needed now.
The string for equip_tent_poles is confusing if the requirements are 6 Tent Poles but meant is 1x (6 Tent Poles).
2019-12-17 11:10:51 +01:00

108 lines
2.6 KiB
C++

class ItemTent : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\tentbag_gear.p3d";
picture = "\dayz_equip\textures\equip_tentbag_ca.paa";
displayName = $STR_EQUIP_NAME_20;
descriptionShort = $STR_EQUIP_DESC_20;
class ItemActions
{
class Build
{
text = $STR_PITCH_TENT;
script = "spawn player_build;";
require[] = {};
create = "TentStorage";
//Bypass collision test
bypassCollision = "true";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_270;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemKnife"};
output[] = {{"desert_net_kit",1}};
input[] = {{"ItemTent",2},{"equip_tent_poles",2}};
};
class Crafting1
{
text = $STR_EPOCH_PLAYER_271;
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemKnife"};
output[] = {{"forest_net_kit",1}};
input[] = {{"ItemTent",2},{"equip_tent_poles",2}};
};
};
};
class ItemDomeTent : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\tentbag_gear.p3d";
picture = "\dayz_equip\textures\equip_tentbag_ca.paa";
displayName = $STR_VEH_NAME_DOME_TENT;
descriptionShort = $STR_EQUIP_DESC_20;
class ItemActions
{
class Build
{
text = $STR_PITCH_DOME_TENT;
script = "spawn player_build;";
require[] = {};
create = "DomeTentStorage";
//Bypass collision test
bypassCollision = "true";
};
class Crafting1
{
text = $STR_EPOCH_PLAYER_271;
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemKnife"};
output[] = {{"forest_net_kit",1}};
input[] = {{"ItemDomeTent",2},{"equip_tent_poles",2}};
};
};
};
// EPOCH ADDITION
class ItemDesertTent : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\tentbag_gear.p3d";
picture = "\dayz_equip\textures\equip_tentbag_ca.paa";
displayName = $STR_VEH_NAME_DESERT_TENT;
descriptionShort = $STR_EQUIP_DESC_20;
class ItemActions
{
class Build
{
text = $STR_PITCH_DESERT_TENT;
script = "spawn player_build;";
require[] = {};
create = "DesertTentStorage";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_270;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemKnife"};
output[] = {{"desert_net_kit",1}};
input[] = {{"ItemDesertTent",2},{"equip_tent_poles",2}};
};
};
};