mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Add minimum pvp knockbacks to other meele weapons
This commit is contained in:
parent
ff882707de
commit
76bff2b540
1 changed files with 2 additions and 0 deletions
|
@ -304,6 +304,8 @@ function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool
|
|||
-- add minimum knockback
|
||||
if knockback <= 1.5 then
|
||||
knockback = knockback + 4.875
|
||||
elseif knockback <= 6.19 then
|
||||
knockback = knockback + 0.609375
|
||||
end
|
||||
end
|
||||
-- add player velocity to knockback
|
||||
|
|
Loading…
Reference in a new issue