1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-27 19:45:20 +01:00

Update sprint mod

- Add stamina graphical bar
- tweak the stamina.png
- tweak the hud config in init.lua
This commit is contained in:
Ombridride
2014-11-14 20:27:08 +01:00
parent ebae847132
commit c2abf4c47a
5 changed files with 155 additions and 27 deletions

View File

@@ -1,11 +1,11 @@
Sprint Mod For Minetest by GunshipPenguin
Allows the player to sprint by double tapping w. By default,
sprinting will make the player travel 50% faster and allow him/her
to jump 10% higher.
Licence: WTFPL (see LICENCE file)
sprinting will make the player travel 80% faster and allow him/her
to jump 10% higher. Also adds a stamina bar that goes down when the
player sprints and goes up when he/she isn't sprinting.
Licence: CC0 (see COPYING file)
---
@@ -33,8 +33,7 @@ How long the player can sprint for in seconds. Each player has a
stamina variable assigned to them, it is initially set to
SPRINT_STAMINA and can go no higher. When the player is sprinting,
this variable ticks down once each second, and when it reaches 0,
the player stops sprinting and may be sent a warning depending on
the value of SPRINT_WARN. It ticks back up when the player isn't
the player stops sprinting. It ticks back up when the player isn't
sprinting and stops at SPRINT_STAMINA. Set this to a huge value if
you want unlimited sprinting.
@@ -44,9 +43,3 @@ How much time the player has after releasing w, to press w again and
start sprinting. Setting this too high will result in unwanted
sprinting and setting it too low will result in it being
difficult/impossible to sprint.
SPRINT_WARN (default true)
If the player should be warned that his/her stamina has run out via
the in game chat system. You may want to set this to false if the
notifications get annoying.