Hey fellas,
I have been modding DayZ quite a bit lately and am trying to do a server side custom items class without having to have players download a custom DayZ addon which wouldnt work anyway as I am hosted through DayZ.ST.
I have tried modifying Description.ext to include this......
This doesn't seem to add the ItemMedKit at all. The above was just an example of an item but I had more planned if someone can help me out.
I have a custom crafting script that I know works, that I was using to create the medkit. My debugs just kept telling me "ItemMedKit not added" which means it doesn't exist.
I also tried calling through its own customitems.hpp through the #include in discription.ext just to see if that would work. It did not. I also tried adding my own config.cpp to the mission file and that also did not work.
A little help would be appreciated!
Thanks in advance,
Krixes
I have been modding DayZ quite a bit lately and am trying to do a server side custom items class without having to have players download a custom DayZ addon which wouldnt work anyway as I am hosted through DayZ.ST.
I have tried modifying Description.ext to include this......
Code:
class CfgMagazines {
class CA_Magazine;
class ItemMedKit : CA_Magazine {
scope = public;
count = 1;
type = 256;
displayName = "MedKit";
model = "\dayz_equip\models\bloodbag.p3d";
picture = "\dayz_equip\textures\equip_bloodbag_ca.paa";
descriptionShort = "This is a self use medkit. Can be used to restore a bit of life.";
class ItemActions {
class Use {
text = "Use medkit";
script = "spawn player_makeFire;"; // This is just to test before adding the real script.
};
};
};
};
This doesn't seem to add the ItemMedKit at all. The above was just an example of an item but I had more planned if someone can help me out.
I have a custom crafting script that I know works, that I was using to create the medkit. My debugs just kept telling me "ItemMedKit not added" which means it doesn't exist.
I also tried calling through its own customitems.hpp through the #include in discription.ext just to see if that would work. It did not. I also tried adding my own config.cpp to the mission file and that also did not work.
A little help would be appreciated!
Thanks in advance,
Krixes