slower running

Post Reply
cybervision
Member
Posts: 31
Joined: Wed Jan 10, 2018 05:45
GitHub: tonsb
In-game: cybervision

slower running

by cybervision » Post

i would like to know if their is a way to make running a little slower instead on super sonic

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: slower running

by TenPlus1 » Post

You could try the Stamina mod which lets a player sprint instead of supersonic running: https://github.com/tenplus1/stamina

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: slower running

by Krock » Post

Solution with "fast" privilege and the regular Minetest settings:
Add or update the following setting in your minetest.conf file or use the Advanced Settings form in the mainmenu:

Code: Select all

movement_speed_fast = 6
Note: This also affects players who would like to fly faster.
Reference: https://github.com/minetest/minetest/bl ... mple#L1262

From the perspective of modding:
You can use the function ` player:set_physics_override(table) ` on any player to modify their maximal movement speed. Example: (untested)

Code: Select all

local player = minetest.get_player_by_name("singleplayer")
if not player then
   return
end
player:set_physics_override({
   speed = 1.2
})
Reference: https://github.com/minetest/minetest/bl ... 4149-L4159
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests