help with adding new food items to server (beer and candybars)

rhammer2003

New Member
Hello all,
I was recently on a dayz chenarus 1.7.7.1 server that had some custom food and drink items, i have my own server and would like to add some new food and drink items as well.
I have searched the forums and tried to goole this and found some info on createing the graphics but no info on how to actually add the items.
Is there a mod or script i need to add in order to do this?where are these items stord in the game? Server side or client side? If anyone has any info on this i would be willing to put together a tutorial on how this is done and share.
Thanks all.
 
Hello all,
I was recently on a dayz chenarus 1.7.7.1 server that had some custom food and drink items, i have my own server and would like to add some new food and drink items as well.
I have searched the forums and tried to goole this and found some info on createing the graphics but no info on how to actually add the items.
Is there a mod or script i need to add in order to do this?where are these items stord in the game? Server side or client side? If anyone has any info on this i would be willing to put together a tutorial on how this is done and share.
Thanks all.

You can't add new models to the game. I don't know about candybars but I do know that beer is already in dayz 1.7.7.1. The only thing is they are set to nearly never spawn in the cfgLoot. If you go to : http://opendayz.net/threads/tutorial-custom-loot-tables-and-adjusting-spawn-rates.11589/ You can go into cfgLoot or cfgBuildingLoot and adjust the spawns of them. Goodluck :D
 
Actually just looked into my custom cfgLoot and found
Code:
            {"FoodCandyAnders",0.60},
            {"FoodCandyLegacys",0.60},
            {"FoodCandyMintception",0.60},

So there is candy. .60 means 60% chance to spawn. I think they are originally set to .01 or something. Only the ones that hint to the mod developers like
Code:
            {"ItemSodaR4z0r",0.60},
            {"ItemSodaClays",0.60},
            {"ItemSodaSmasht",0.60},
            {"ItemSodaDrwaste",0.60},
are marked so low. The usual items have a much, much higher spawn rate.

I still have yet to see these 4...and I really want to see them xD
Code:
            {"FoodCanDemon",0.60},
            {"FoodCanFraggleos",0.60},
            {"FoodCanHerpy",0.60},
            {"FoodCanDerpy",0.60},
 
ok, I have tried to follow the tutorial and can not find the following files..
  • dayz_code\Configs\CfgLoot\CfgBuildingLoot.hpp
  • dayz_code\Configs\CfgLoot\CfgBuildingPos.hpp
  • dayz_code\Configs\CfgLoot\CfgLoot.hpp
I do not have them anywhere in my mission.pbo or my server.pbo

Where do I find these?
 
ok, I have tried to follow the tutorial and can not find the following files..
  • dayz_code\Configs\CfgLoot\CfgBuildingLoot.hpp
  • dayz_code\Configs\CfgLoot\CfgBuildingPos.hpp
  • dayz_code\Configs\CfgLoot\CfgLoot.hpp
I do not have them anywhere in my mission.pbo or my server.pbo


Where do I find these?

They are in your client files in the @DayZ folder.

Dayz_code to be specific
 
Ok, I found the required files, but upon looking thru them I dont see beer or muffins where do I find these or if they are not in the files how do I add them?
 
Code:
 food[] = {
            {"TrashTinCan",0}, //0.05
            {"TrashJackDaniels",0}, //0.05
            {"ItemSodaEmpty",0}, //0.05
            {"ItemSodaCoke",0.60},
            {"ItemSodaPepsi",0.60},
            {"ItemSodaMtngreen",0.60},
            {"ItemSodaR4z0r",0.60},
            {"ItemSodaClays",0.60},
            {"ItemSodaSmasht",0.60},
            {"ItemSodaDrwaste",0.60},
            {"ItemSodaLemonade",0.60},
            {"ItemSodaLvg",0.60},
            {"ItemSodaMzly",0.60},
            {"ItemSodaRabbit",0.60},
            {"FoodCanBakedBeans",0.60},
            {"FoodCanSardines",0.60},
            {"FoodCanFrankBeans",0.60},
            {"FoodCanPasta",0.60},
            {"FoodCanBadguy",0.60},
            {"FoodCanBoneboy",0.60},
            {"FoodCanCorn",0.60},
            {"FoodCanCurgon",0.60},
            {"FoodCanDemon",0.60},
            {"FoodCanFraggleos",0.60},
            {"FoodCanHerpy",0.60},
            {"FoodCanDerpy",0.60},
            {"FoodCanOrlok",0.60},
            {"FoodCanPowell",0.60},
            {"FoodCanTylers",0.60},
            {"FoodCanUnlabeled",0.60},
            {"FoodPistachio",0.60},
            {"FoodNutmix",0.60},
            {"FoodChipsSulahoops",0.60},
            {"FoodChipsMysticales",0.60},
            {"FoodCandyAnders",0.60},
            {"FoodCandyLegacys",0.60},
            {"FoodCandyMintception",0.60},
            {"FoodCanRusUnlabeled",0.60},
            {"FoodCanRusStew",0.60},
            {"FoodCanRusPork",0.60},
            {"FoodCanRusPeas",0.60},
            {"FoodCanRusMilk",0.60},
            {"FoodCanRusCorn",0.60}
    };
 
Ok I got that, and I understand that the items go in the food section, but what I would like to know is what is the beer called? ItemBeer? or is there some other name it is called I have looked at my cfgloot.hpp file and have not seen it anywhere and I havent been able to find this information in either a google search or on this sites forums.
is there also other items that can be added to this list? if so where do I find the names of them?

Thanks.
 
Ok I got that, and I understand that the items go in the food section, but what I would like to know is what is the beer called? ItemBeer? or is there some other name it is called I have looked at my cfgloot.hpp file and have not seen it anywhere and I havent been able to find this information in either a google search or on this sites forums.
is there also other items that can be added to this list? if so where do I find the names of them?

Thanks.

It's in the list. I don't know which of them it is. Could be the smasht. not a clue though. But that's my cfgLoot food, and i've seen beer in game. so its one of those.

also, you can't add items to this. What you can do though, is go to cfgBuildingloot.hpp and add different loot to a new building, say if you want military loot to spawn in a hospital. Just add a new item
 
Back
Top