Discussion Hunger/Thirst mechanics

For general development discussion.

Vinnie

New member
I'd like to ask how the currently implemented Hunger/Thirst mechanics are supposed to work. Intuition tells me that either my stamina or health would start to drop as i get low on either. Currently i've gotten my thirst to 0% but i do not seem to notice anything happening as a consequence.
 
There are no bad effects at the moment, that’s one of the systems that require more work.

EDIT: I have pinned this thread and tagged it for discussion. Feel free to suggest what sorts of effects you would like from the hunger and thirst system.
 
Last edited:
I would suggest something like this:

Have thirst influence max stamina at a 1:1 ratio, where 0% thirst means you can't sprint. Keeping thirst topped up at 100% could grant stamina bonuses, allowing you to sprint for 20% longer, for example. Alternatively, it could enable you to sprint for as long as thirst remains at 100%. This mechanic would tie into combat situations nicely, making juice boxes analogous to potions in an RPG—valuable resources to have on hand when you need to outmaneuver or outrun an opponent.

Hunger could affect strength instead, reducing melee damage when you're hungry. The rest of its effects could mimic the thirst mechanic, but for melee damage—providing a damage buff when hunger is at 100%. This would work well if resources in the final game are scarce, incentivizing players to rely on melee combat against NPC mobs to conserve precious ammo for encounters with Z-players.

Another alternative is to have hunger influence HP as well—or instead. At 80%, hunger would equate to 100 health, 100% hunger would equate to 120 health for example, while at 0% hunger (with some stop gap for negative hp), they would start taking damage at set intervals due to starvation.
--edit.
Being topped up at 100% could heal you one point at a set interval, though might diminish some of the medical items of which there are a lot by the way.
 
Last edited:
I have been looking into custom stamina and even found a library that might have given me what I wanted. However, it was fatally flawed when it came to spamming the space bar to sprint faster. The problem is, no matter how hard I have tried this evening I have been unable to find any other libraries which would give me what I want and the only other option I found had dead links with no way of downloading or reading the code. That's not to say I won't continue looking for a way but I might have to go a different route for debuffs in regards to the hunger and thirst system.

I like the idea of there being some buffs which reward good management of your hunger and thirst.

EDIT: Turns out there was a health drain effect added to the hunger and thirst wherein you would lose 3 health each time the timer ticked. Of course it was a bit bugged but will be fixed in the next patch.
 
Back
Top