mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
pitching up too far can make player fall fast
This commit is contained in:
parent
832b0afdd6
commit
20b229a9b9
@ -304,7 +304,7 @@ minetest.register_globalstep(function(dtime)
|
||||
-- NOTE: do not set this higher than about 0.7 or the game will get the wrong vel and it will be broken
|
||||
v = vector.multiply(v, -0.3)
|
||||
player:add_velocity(v)
|
||||
vel.y = vel.y - (100 / math.max(speed_mult, 2)) * dtime
|
||||
vel.y = vel.y - (300 / math.max(speed_mult, 1)) * dtime
|
||||
player:add_velocity(vel)
|
||||
playerphysics.add_physics_factor(player, "gravity", "mcl_playerplus:elytra", 0.1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user