Adjust the difference between sprinting & walking knockbacks for a more seemless transition
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
|
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()
|
||||||
|
|
Loading…
Reference in New Issue