mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
less pitch up slowdown
This commit is contained in:
parent
ece79cad8a
commit
b7a5a74ccf
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
local player_vel = player:get_velocity()
|
local player_vel = player:get_velocity()
|
||||||
local turn_amount = anglediff(minetest.dir_to_yaw(direction), minetest.dir_to_yaw(player_vel))
|
local turn_amount = anglediff(minetest.dir_to_yaw(direction), minetest.dir_to_yaw(player_vel))
|
||||||
local direction_mult = clamp(-direction.y - 0.2, -0.8, 1)
|
local direction_mult = clamp(-direction.y - 0.2, -0.8, 1)
|
||||||
if direction_mult < 0 then direction_mult = -(direction_mult^2) / 2 end
|
if direction_mult < 0 then direction_mult = -(direction_mult^2) / 4 end
|
||||||
|
|
||||||
local speed_mult = elytra.speed + direction_mult * speedup_mult * dtime
|
local speed_mult = elytra.speed + direction_mult * speedup_mult * dtime
|
||||||
speed_mult = speed_mult - slowdown_mult * dtime -- slow down
|
speed_mult = speed_mult - slowdown_mult * dtime -- slow down
|
||||||
|
|
Loading…
Reference in a new issue