Make fast mode fast again, remove uberspeed

This commit is contained in:
Wuzzy 2019-06-23 20:52:26 +02:00
parent b1c51d1b71
commit 11aaf85b7c
2 changed files with 3 additions and 52 deletions

View File

@ -6,11 +6,11 @@ time_speed = 120
# Movement
movement_acceleration_default = 3.3
movement_acceleration_fast = 5.0
movement_acceleration_fast = 10.0
movement_acceleration_air = 2.0
movement_speed_walk = 4.2
movement_speed_fast = 7.0
movement_speed_fast = 25.0
movement_speed_crouch = 1.8
movement_speed_climb = 2.4
movement_speed_descend = 3.8
@ -23,7 +23,7 @@ movement_gravity = 9.8
# Privileges
default_privs = fast, interact, player_skin, shout, spawn, zoom
default_privs = interact, player_skin, shout, spawn, zoom
# If you're given the inital stuff

View File

@ -228,53 +228,4 @@ minetest.register_chatcommand(
end
})
player_effects.register_effect(
"uberspeed",
{
title = "Uberspeed",
description = "If you can go really fast",
duration = -1,
physics = {
speed = 8,
}
})
player_effects.register_effect(
"uberspeed_cinematic",
{
title = "Cinematic",
description = "Cinematic fast movement",
duration = -1,
physics = {
speed = 2,
}
})
minetest.register_privilege(
"uberspeed",
{
description = "Can use /uberspeed command",
give_to_singleplayer = false
})
minetest.register_chatcommand(
"uberspeed",
{
params = "[on|off|cinematic]",
description = "Set Uberspeed",
privs = {uberspeed = true},
func = function(name, param)
local player=minetest.get_player_by_name(name)
if param == "on" then
player_effects.apply_effect(player, "uberspeed")
elseif param == "cinematic" then
player_effects.apply_effect(player, "uberspeed_cinematic")
elseif param == "off" then
player_effects.remove_effect(player, "uberspeed")
player_effects.remove_effect(player, "uberspeed_cinematic")
else
minetest.chat_send_player(name, "Bad param for /uberspeed; type /help uberspeed")
end
end
})
default.log("mod:player_effects", "loaded")