hi, i have problem i have activated 3 addons:
In my addon i need update already used classes CfgMagazines:
i add in CfgPatches this:
and in cfgMagazines i add this:
but when game loading i don't have changes, my classes reading first (in my addon) and update original (dayz origins and dayz epoch), maybe arma have priority variable for config.cpp?
Code:
dayz origins
dayz epoch
my addon
Code:
ItemHeatPack
ItemPlotDeed
SkinBase
Code:
requiredAddons[]={
"dayz_code",
"ori_items"
};
Code:
class CA_Magazine;
classItemHeatPack: CA_Magazine {
scope =2;
count =1;
type =256;
displayName ="$STR_EQUIP_NAME_42";
model ="\ori\items\game\ori_heatpack.p3d";
picture ="\ori\items\data\ico\equip_ori_heatpack_ca.paa";
descriptionShort ="$STR_EQUIP_DESC_42";
classItemActions{
classUse{
text="$STR_ACTIONS_HEATPACK";
script="spawn player_useMeds;";
};
};
};
classItemPlotDeed: CA_Magazine {
scope=2;
count=1;
type=256;
displayName="Plot Deed";
model="\z\addons\dayz_epoch\models\doc_generic.p3d";
picture="\z\addons\dayz_epoch\pictures\equip_doc_generic_ca.paa";
descriptionShort="Deed to a plot of land, similar to a plot pole.";
weight=0.1;
sfx="document";
classItemActions{
classCrafting{
text="Craft Plot Pole";
script=";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={
"workshop"
};
requiretools[]={
"ItemToolbox"
};
output[]={
{"ItemPlotDeed",1},
{"ItemGoldBar10oz",2}
};
input[]={
{"ItemPlotDeed",1},
{"ItemGoldBar10oz",2}
};
};
};
};
classSkinBase: CA_Magazine {
scope=0;
count=1;
type=256;
displayName="Clothes";
model="\dayz_equip\models\cloth_parcel.p3d";
picture="\dayz_equip\textures\equip_cloth_parcel_ca.paa";
descriptionShort="Clothes Parcel";
weight=1;
classItemActions{
classUse{
text="$STR_EPOCH_PLAYER_268";
script="spawn player_wearClothes;";
};
classCrafting{
text="$STR_EPOCH_PLAYER_269b";
script=";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={};
requiretools[]={
"ItemToolbox",
"ItemKnife"
};
output[]={
{"ItemCanvas",1}
};
input[]={
{"SkinBase",2}
};
};
classCrafting1{
text="$STR_EPOCH_PLAYER_269";
script=";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={};
output[]={
{"ItemRags",2}
};
input[]={
{"SkinBase",1}
};
};
};
};
Last edited: