Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgMagazines/Items/ToolCrafting.hpp
A Man d9b9874532 Change scope and type of configs from name to numbers
This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs.  A proper config should use numbers for those entries. This is the same how arma configs are written.  The basicDefines.hpp has all the needed information stored.

Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
2020-05-29 02:04:06 +02:00

110 lines
2.9 KiB
C++

class equip_lever : CA_Magazine
{
scope = 2;
count = 1;
type = 256;
picture = "\dayz_equip\textures\equip_lever.paa";
model = "\z\addons\dayz_epoch_w\magazine\dze_handle.p3d";
descriptionShort = $STR_EQUIP_DESC_LEVER;
displayName = $STR_EQUIP_NAME_LEVER;
};
class ItemSledgeHead : CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_SLEDGEHAMMERHEAD;
model = "\z\addons\dayz_epoch\models\sledge_head.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_sledge_head_ca.paa";
descriptionShort = $STR_EPOCH_SLEDGEHAMMERHEAD_DESC;
class ItemActions
{
class Crafting
{
text = $STR_EPOCH_PLAYER_275;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {};
outputweapons[] = {"ItemSledge"};
input[] = {{"ItemSledgeHead",1},{"ItemSledgeHandle",1}};
};
};
};
class ItemSledgeHandle : CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_SLEDGEHAMMERHANDLE;
model = "\z\addons\dayz_epoch\models\sledge_handle.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_sledge_handle_ca.paa";
descriptionShort = $STR_EPOCH_SLEDGEHAMMERHANDLE_DESC;
class ItemActions
{
class Crafting
{
text = $STR_EPOCH_PLAYER_275;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {};
outputweapons[] = {"ItemSledge"};
input[] = {{"ItemSledgeHead",1},{"ItemSledgeHandle",1}};
};
};
};
class equip_Crossbow_Kit : CA_Magazine
{
scope = 2;
count = 1;
displayName = $STR_ITEM_NAME_CROSSBOW_KIT;
descriptionShort = $STR_ITEM_DESC_CROSSBOW_KIT;
model = "\z\addons\community_crossbow\models\Crossbow_kit.p3d";
picture = "\z\addons\community_crossbow\textures\Crossbow_kit.paa";
type = 256;
class ItemActions
{
class Crafting
{
text = $STR_CRAFTING_CROSSBOW;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemKnife"};
output[] = {};
outputweapons[] = {"Crossbow_DZ"};
input[] = {{"equip_Crossbow_Kit",1},{"equip_crossbow_stock",1}};
};
};
};
class equip_crossbow_stock : CA_Magazine
{
scope = 2;
count = 1;
displayName = $STR_ITEM_NAME_CROSSBOW_STOCK;
descriptionShort = $STR_ITEM_DESC_CROSSBOW_STOCK;
model = "z\addons\community_crossbow\models\crossbow_stock.p3d";
picture = "\z\addons\community_crossbow\icons\crossbow_stock.paa";
type = 256;
class ItemActions
{
class Crafting
{
text = $STR_CRAFTING_CROSSBOW;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemKnife"};
output[] = {};
outputweapons[] = {"Crossbow_DZ"};
input[] = {{"equip_Crossbow_Kit",1},{"equip_crossbow_stock",1}};
};
};
};