-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Mods To Disable Breath Regen #8042
Comments
@benrob0329 i agree. Do you know where it's defined ? |
It's done here: Line 1021 in 67049eb
|
thanks, i was in the train didn't checked. It's anoying to see it's in the engine itself. I think we can add a property or a lua call to enable/disable breath on a player object, do you think it's an acceptable solution ? it should permit to define it per player if needed on some gameplays |
A property probably makes the most sense here. |
Why is this even built in, and not a part of minetest game? Move it out. |
I totally agree, breath shouldn't be part of the engine. I also wish that hp wasnt't part of the engine, but at least that is more tied into mechanics which need engine support (ie: punching entities client-side) |
Punching and hp can and should be moved to clientside lua eventually. |
I agree with the feature request. I like to add some basic (!) customization options for player breath handling would be even more useful:
Why? Because these seem to be the most obvious ones. That, together with the settable breath limit, would cover 90% of what games need. The 10% can disable breath regen and handle it their own way.
Nooooooo!! I don't know what kind of elaborated breath mods you envision, but I wanna bet that most mods would just boil down to the same mechanic: If player in liquid → reduce breath, if player outside of liquid → increase breath. While you're at it, why not outsourcing liquids to Lua as well? It's basically just meshnodes and ABMs. It's so much simpler that way!!111!oneoneeleven Who needs the engine anyway? Eveything in Lua! |
Perhaps there should be a general block "damage" API that allows games to define different effects that should be applied to the player if they're in a certain node. Such as |
Issue type
Minetest version
Summary
Some mods may want to handle breath in a nonstandard way depending on the effects on and actions of the player. Currently mods need to fight against the automatic breath regeneration which can results in jumpy values for the player.
The text was updated successfully, but these errors were encountered: