mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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.
95 lines
2.2 KiB
C++
95 lines
2.2 KiB
C++
class PartFueltank : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
model = "\dayz_equip\models\fueltank.p3d";
|
|
picture = "\dayz_equip\textures\equip_fueltank_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_8;
|
|
descriptionShort = $STR_EQUIP_DESC_8;
|
|
|
|
class ItemActions
|
|
{
|
|
class Crafting
|
|
{
|
|
text = $STR_EPOCH_PLAYER_212;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"workshop"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"PartGeneric",1}};
|
|
input[] = {{"PartFueltank",1}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class PartWheel : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
model = "\dayz_equip\models\wheel.p3d";
|
|
picture = "\dayz_equip\textures\equip_wheel_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_9;
|
|
descriptionShort = $STR_EQUIP_DESC_9;
|
|
};
|
|
|
|
class PartEngine : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
model = "\dayz_equip\models\engine.p3d";
|
|
picture = "\dayz_equip\textures\equip_engine_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_11;
|
|
descriptionShort = $STR_EQUIP_DESC_11;
|
|
|
|
class ItemActions
|
|
{
|
|
class Crafting
|
|
{
|
|
text = $STR_EPOCH_PLAYER_212;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"workshop"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"PartGeneric",2}};
|
|
input[] = {{"PartEngine",1}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class PartVRotor : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
model = "\dayz_equip\models\vrotor.p3d";
|
|
picture = "\dayz_equip\textures\equip_vrotor_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_32;
|
|
descriptionShort = $STR_EQUIP_DESC_32;
|
|
|
|
class ItemActions
|
|
{
|
|
class Crafting
|
|
{
|
|
text = $STR_EPOCH_PLAYER_212;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"workshop"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"PartGeneric",3}};
|
|
input[] = {{"PartVRotor",1}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class PartGlass : CA_Magazine
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
model = "\dayz_equip\models\carglass.p3d";
|
|
picture = "\dayz_equip\textures\equip_carglass_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_30;
|
|
descriptionShort = $STR_EQUIP_DESC_30;
|
|
};
|
|
|
|
// PartGeneric can be found under Items\Metal.hpp
|