1
0
Fork 0

Add minimum pvp knockbacks to other meele weapons

fix_pumpkin_typo_pumkin
Eliy21 2023-12-19 16:49:48 +00:00
parent ff882707de
commit 76bff2b540
1 changed files with 2 additions and 0 deletions

View File

@ -304,6 +304,8 @@ function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool
-- add minimum knockback -- add minimum knockback
if knockback <= 1.5 then if knockback <= 1.5 then
knockback = knockback + 4.875 knockback = knockback + 4.875
elseif knockback <= 6.19 then
knockback = knockback + 0.609375
end end
end end
-- add player velocity to knockback -- add player velocity to knockback