forked from VoxeLibre/VoxeLibre
Adjust the difference between sprinting & walking knockbacks for a more seemless transition
This commit is contained in:
parent
76bff2b540
commit
e19de85990
|
@ -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
|
||||
knockback = knockback + hitter_mag * 0.6875
|
||||
elseif dir_dot > 0 then
|
||||
knockback = knockback + hitter_mag * 0.34375
|
||||
knockback = knockback + hitter_mag * 0.515625
|
||||
end
|
||||
-- reduce floatiness
|
||||
minetest.after(0.25, function()
|
||||
|
|
Loading…
Reference in New Issue