minetest-mods / stamina

Adds hunger (stamina) to minetest.
17 stars 18 forks source link

Add a setting to allow players with fast privilege to sprint. #31

Closed Elinvention closed 4 years ago

Elinvention commented 4 years ago

As discussed in #30, I added the option stamina.sprint_with_fast to allow players with fast privilege to sprint.

fluxionary commented 4 years ago

Looks good to me, tested it. Unfortunately I don't have the ability to merge.

SmallJoker commented 4 years ago

The PR looks good, but in which case do you need sprint when "fast" mode is triggered anyway?

fluxionary commented 4 years ago

This allows sprinting while having the fast priv when the client hasn't triggered fast mode. Ideally this PR would have been a change to make the "fast priv" check instead a "fast in use" check, but I don't think there's any way to do that.