mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-22 07:15:14 +02:00
Adjust the difference between sprinting & walking knockbacks for a more seemless transition
This commit is contained in:
parent
76bff2b540
commit
e19de85990
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue