DayZ
285 ratings
ZenLeftovers
2
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
5.305 MB
12 Apr, 2022 @ 11:06pm
15 Oct, 2024 @ 10:46pm
22 Change Notes ( view )

Subscribe to download
ZenLeftovers

Description
What Is This?

This mod adds a player-tracking feature: dropped garbage after consuming vanilla packaged food & medical items.

There are some lightly re-textured models for empty food cans etc, nothing too fancy.

The mod is intended for hardcore and RP servers so that players can track other players' activity by finding their garbage trail - if players don't want to be tracked, then they need to clean up after themselves carefully ;)

You can craft empty cans into fish hooks (optional - can be disabled in the server config. Very rough on your knife tool and produces a damaged hook).

You can turn some paper-based food packets into regular paper.

You can hold liquids in empty jam or honey jars (only 250mL, 25% of regular bottles - and they're extremely fragile and easy to ruin).

Items That Drop Junk When Consumed:

- All vanilla packaged food and drink items
- Used saline bags
- Used blood bags
- Used morphine, epinephrine and pox injectors
- MRE items from MassFood mod (as an example of how to add modded items)

Keep in mind that any modded items will only drop empty versions of themselves and not re-textured items with a unique name & description. But it's the best I can do with this sort of mod, and better than nothing I guess!

Installation:

To install follow the usual steps - subscribe to the mod, copy the mod folder to your server folder, copy the .bikey file into the server's key folder, and then (optional) copy the types.xml entries into your types. Don't forget to put the mod "@ZenLeftovers" in your server's mods list.

The types.xml file is optional - if you don't add the types, then the food items will disappear immediately when a player is not nearby. If you have a popular server this might be preferred, if you have a quieter server you might want to implement the types.xml items so that you can still track players who have left an area.

The default persistence on all empty garbage items is 30 minutes.

If you use vanilla food items you don't need to do anything else, but if you use food or medical mods and want to add them you'll need to modify the .json config file. Further instructions are included in the mod files.

Also be aware there may be conflicts with any mods that override any of the player consume functions - especially any that affect how food/water/meds are consumed. I haven't done any testing with other food mods except for MRE Foods so please let me know if you encounter any bugs while consuming items with this mod installed.

Adding Modded Items:

This mod comes with a JSON config file that you can modify to add extra items. Run your server once after installation, and a JSON config file will be added in your server config folder under "Zenarchist/ZenLeftoversConfig.json".

This file is where you can add extra junk items that get dropped after consuming an original food/drink/medical item.

Make sure that your JSON syntax is correct or it'll break the mod, but all you need to do to add a junk item entry is add something like this:

{ "OriginalItemType": "Food_Type_Name", "LeftoverItemType": "Junk_Type_Name", "ItemHealth": 1, "DropToGround": 0 }

It'll work with any item, doesn't necessarily need to be food (could be meds too for example).

OriginalItemType is the item you consume.
LeftoverItemType is the item that is dropped on the ground after.
ItemHealth is the HP of the junk item - 0 means inherit health from the original item, -1 means ruined, 1-100 means HP (1 = badly damaged).
DropToGround is a true/false 1/0 value - 0 means the junk item will be placed in the player's hands, 1 means the item will be dropped onto the ground.

The persistence on these junk items will also be whatever the edible equivalents are in your types.xml files, so be aware that this might result in your server being overly cluttered with junk items. If you have a popular server and want to run this mod you might want to set the ItemHealth to -1 so that the junk item spawns ruined and despawns if no one is around.

You can also disable the use of empty jars as water containers by changing the LeftoverItemType for honey and marmalade to Empty_Honey_NoLiquid and Empty_Marmalade_NoLiquid (particularly useful for Namalsk as the default Empty model doesn't freeze).

Repacking & Credits:

Unfortunately due to lack of time I can't maintain all of my mods all of the time. I do my best, but these mods are offered as-is. If there's a problem, you have the source code and my permission to fix it yourself and upload a fixed version to the workshop without any credit necessary. It's all free.

You can repack this mod if you like, and do anything else you want with it for that matter. The source code is on my GitHub at www.zenarchist.com

Huge thanks to everyone in the DayZ Modding discord (https://discord.com/invite/NEX27Gx) - I learned how to do all of this by just searching through prior discussions. Also thanks Spurgle for your retexturing vanilla items guide on YouTube, and thanks heaps to Mass for some great suggestions & advice.

Buy Me A Coffee:

All my mods are free and open source, but it takes an enormous amount of time to put some of these mods together. If I've helped you out, please consider helping me buy my next coffee! I don't expect it, but I very much appreciate it.

https://buymeacoffee.com/zenarchist

Enjoy!
Popular Discussions View All (1)
5
26 Jun, 2022 @ 9:12am
Issues since the last update
Louna
55 Comments
Ghostz 16 Apr @ 9:47pm 
It would be interesting to have the option of filling with water, combining catchrain for the cans
nurbsplane 1 Mar @ 1:22pm 
Dear Everyone. Im old and bold and seem to be missing something when it comes to filling the jam jar with water after consumption... How does one go about tweaking that so i can fill it at the wells on namalsk. take care. Sorry for the hassle... Jonathan
rucifa 30 Jan @ 12:12am 
Hey Zenarchist, love the mod. I've tried to add new items to my JSON but on each server restart it reverts? Any ideas?
seelenapparat1 19 Nov, 2024 @ 12:15pm 
Could you rename the empty soda cans displayname to have an Empty in front of it like all the other empty items.
I always get confused when I find a soda can wether it's a full or empty can. Thank you.
Fresh 5 Aug, 2024 @ 8:22am 
Bitterroot food items could be added. That would be clutch!
Snipa 29 Oct, 2023 @ 11:58am 
@Zenarchist

Change this:

LeftoverItems.Insert(new LeftoverItem("Pate_Opened", "Empty_Pate_Opened", 0));
LeftoverItems.Insert(new LeftoverItem("Pajka_Opened", "Empty_Pate_Opened", 0));

For this:

LeftoverItems.Insert(new LeftoverItem("Pate_Opened", "Empty_Pate_Opened", 0));
LeftoverItems.Insert(new LeftoverItem("Pajka_Opened", "Empty_Pajka_Opened", 0));
Garageman 14 Aug, 2023 @ 9:54am 
Hello @Zen. I love your work, especially this workshop.

May I used your ip and extend your workshop by adding empty models of MoreFood (which I am currently creating - it is a mass of work ;-) ). This is only for my (Namalsk) server. (Or, if you allow reusing your ip, I would publish my/your work as PUBLIC).

Cheers.
.:. lutz
Hélios 24 Jun, 2023 @ 7:19pm 
epic
Antnommer 13 May, 2023 @ 11:55am 
I've been using near-enough vanilla equivalents for the empties with modded food (CJ187's More Food mod), like using empty unknown food cans for modded cans. But rather than empty duplicates of vanilla items, why not just have generic empties that look like the label was ripped off?
A Foul Tempered Pigeon 8 May, 2023 @ 4:09am 
Has a fix been figured out for the endless food bug?

When I have the .json configured like this -
{
"OriginalItemType": "DONFOOD_CAN_CHERARMYCANDY",
"LeftoverItemType": "DONFOOD_CAN_CHERARMYCANDY_Opened",
"ItemHealth": 1,
"DropToGround": 1
}

Whatever the leftover item type is it always drops at 100% remaining.