Project Zomboid

Project Zomboid

30 ratings
[B41/42] Simple Drink Hotkey
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
33.048 KB
22 Aug, 2023 @ 4:26am
26 Dec, 2024 @ 7:00pm
6 Change Notes ( view )

Subscribe to download
[B41/42] Simple Drink Hotkey

Description
Adds a Drink hotkey under Options -> Key Bindings.
Pefers favorited containers.

Bottle(even modded) can be in any backpack on your character (script will take it from there drink and put back)

Favorite water containers have higher priority (even if you have unpacked unfavorite bottle and favorite bottle iside you backpack you'll drink favorite one of available).

If you want to use one specific water container then make it favorite and unfavorite others

You can combine it with autodrink so when main inventory water will deplete you can press button to drink water from you backpach water containers

Fix: favorite bottle changes now have higher priority than cached last used bottle

My other mods:

Workshop ID: 3024063146
Mod ID: SimpleDrinkHotkey
20 Comments
Nyx2330 24 May @ 9:28am 
Everytime I use the hotkey an error keeps showing up could you check this
out by any chance?
Guicsr_ 22 May @ 4:38pm 
dont disaper!!! you mod is very necessary.
Guicsr_ 20 May @ 8:10pm 
Hi, I really liked the mod, very immersive, but it doesn't seem like it detects the mouse button, you know? Those helpers? I can put it in the hotkey menu but when I press it it doesn't register, I only understand the keyboard button, can you make this adjustment?
Mr.Dorito 29 Mar @ 7:48pm 
Can you make it so i can drink with a bottle being in a backpack? its anoying to have to take the bottle out so i can use the hotkey.
Loccatpowersdog 10 Feb @ 1:33pm 
As Majorx4 said, I'm get a units nil message; it worked for a bit then quit.
xDant 29 Jan @ 10:03am 
Hi! I was looking for a fix for the vanilla auto drink mechanic that only works if there's water main inventory. Is this the mod ?
Does it allow auto drink from any container?
Major Major Major Major 26 Jan @ 2:47pm 
Doesn't work for me. Doesn't throw up any errors but whenever I try to use the hotkey it just says "units nil" and doesn't do anything.
UnCheat  [author] 5 Jan @ 2:26pm 
Interesting idea!
But I have to check real hydration by sodas in b42 for proper calculation.. I am sure that it's not like water
If I'll found that I need I might add this option
Sari-n 5 Jan @ 1:49pm 
I absolutely love this mod, had it since it released and never getting rid of it, too immersive to actually pull the drink out instead of vanilla auto drink.
Two things, Any possibility of going for sodas/pops if theres no water found?
A food version of this would be amazing, I recall one existing for older zomboid but that was... quite a long time ago, medical meister is a close second but it tends to prioritize biggest meal instead of "enough food"

Even if no, thank you so much for the work you've put into this mod and all your others.
UnCheat  [author] 29 Dec, 2024 @ 3:34pm 
Imagine you can use 250 bottle to drink with a single key and then auto put it back :P nad no canteen needed