mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-17 21:23:44 +01:00
Adjust the difference between sprinting & walking knockbacks for a more seemless transition
This commit is contained in:
@ -317,7 +317,7 @@ function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool
|
|||||||
if dir_dot > 0 and mcl_sprint.is_sprinting(h_name) then
|
if dir_dot > 0 and mcl_sprint.is_sprinting(h_name) then
|
||||||
knockback = knockback + hitter_mag * 0.6875
|
knockback = knockback + hitter_mag * 0.6875
|
||||||
elseif dir_dot > 0 then
|
elseif dir_dot > 0 then
|
||||||
knockback = knockback + hitter_mag * 0.34375
|
knockback = knockback + hitter_mag * 0.515625
|
||||||
end
|
end
|
||||||
-- reduce floatiness
|
-- reduce floatiness
|
||||||
minetest.after(0.25, function()
|
minetest.after(0.25, function()
|
||||||
|
Reference in New Issue
Block a user