Compare commits
5 Commits
4d685be109
...
c94252c7e2
Author | SHA1 | Date |
---|---|---|
aa6 | c94252c7e2 | |
aa6 | de960d8c5e | |
aa6 | a3ffb5d2da | |
aa6 | 53f1aa66de | |
aa6 | c124238eba |
|
@ -1,6 +1,6 @@
|
|||
# Wadsprint [![Version](/util/version.png)] [minetest_wadsprint]
|
||||
|
||||
Minetest mod for sprinting with W, A and D buttons.
|
||||
Minetest mod for sprinting/running with W, A and D buttons. A+D => A+D+W => W.
|
||||
|
||||
![Wadsprint](/screenshots/wadsprint_screenshots.png?raw=true "Wadsprint mod screenshots")
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Sprinting with W, A and D buttons.
|
||||
Sprinting/running with W, A and D buttons. A+D => A+D+W => W.
|
|
@ -3,6 +3,8 @@ dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua")
|
|||
|
||||
-- Processing in-game settings. In-game settings are preferrable
|
||||
-- over global config.lua values.
|
||||
-- Warning: minetest.settings:get() and minetest.settings:get_bool()
|
||||
-- return `nil` value when not set, instead of actual default value.
|
||||
function minetest_wadsprint.load_minetest_settings_key(key,type)
|
||||
if type == "int" then
|
||||
if minetest.settings:get("minetest_wadsprint."..key) ~= nil then
|
||||
|
|
|
@ -33,7 +33,7 @@ elseif minetest.get_modpath("hudbars") ~= nil then
|
|||
player.obj, -- `player`: `ObjectRef` of the player to which the new HUD bar should be displayed to.
|
||||
minetest_wadsprint.HUDBARS_IDENTIFIER, -- `identifier`: The identifier of the HUD bar type, as specified in `hb.register_hudbar`.
|
||||
math.ceil(player.stamina), -- `start_value`: The initial current value of the HUD bar. This is optional, `default_start_value` of the registration function will be used, if this is `nil`.
|
||||
nil, -- `start_max`: The initial maximum value of the HUD bar. This is optional, `default_start_max` of the registration function will be used, if this is `nil`
|
||||
minetest_wadsprint.STAMINA_MAX_VALUE, -- `start_max`: The initial maximum value of the HUD bar. This is optional, `default_start_max` of the registration function will be used, if this is `nil`
|
||||
nil -- `start_hidden`: Whether the HUD bar is initially hidden. This is optional, `default_start_hidden` of the registration function will be used as default.
|
||||
)
|
||||
end
|
||||
|
|
BIN
util/version.png
BIN
util/version.png
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in New Issue