mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
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.
105 lines
2.6 KiB
C++
105 lines
2.6 KiB
C++
class ItemTent : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
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 = 2;
|
|
count = 1;
|
|
type = 256;
|
|
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}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemDesertTent : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = ;
|
|
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}};
|
|
};
|
|
};
|
|
}; |