BukkitOldCombatMechanics icon indicating copy to clipboard operation
BukkitOldCombatMechanics copied to clipboard

Projectile knockback less than 1.8

Open MWHunter opened this issue 3 years ago • 5 comments

  • Server Version: 1.16.5
  • OldCombatMechanics version: Dev build 61
  • Server Log File: Not important
  • OldCombatMechanics config file: Default

To Reproduce

Steps to reproduce the behavior:

  1. Listen to the knockback packets
  2. Throw a snowball, egg, or fishing rod hook at someone
  3. The velocity packet sent is (0, 2201, 1747)

Expected Behaviour

  1. Throw a snowball, egg, or fishing rod hook at someone
  2. The velocity packet should be (0, 2866, 3200)

Actual Behaviour

The player takes less knockback than they should

I put the plugin that broadcasts knockback on spigot - https://www.spigotmc.org/resources/knockback-listener.90600/

MWHunter avatar Mar 26 '21 14:03 MWHunter

Is this at all related with #483?

kernitus avatar Apr 14 '21 23:04 kernitus

Somewhat related, as in projectiles do the non-sprinting knockback to the player.

MWHunter avatar Apr 14 '21 23:04 MWHunter

So actually the projectile knockback is given by the ProjectileKnockback module by simply damaging the player a little. Would having the PlayerKnockback module also apply when it's Projectile damage do the trick, or are the calculations specific to when it's two players?

kernitus avatar May 01 '21 17:05 kernitus

Yes, letting the player knockback module do this would also work, as long as you don't apply any bonus sprinting knockback.

MWHunter avatar May 01 '21 22:05 MWHunter

@MWHunter The packet plugin doesn't seem to be available any more :disappointed:. Would the knockback calculations actually be the same as for living entities (without sprinting knockback of course)?

kernitus avatar Jun 16 '21 12:06 kernitus

The relevant code has changed significantly since this issues was opened. A new one can be opened if necessary.

kernitus avatar Dec 31 '23 15:12 kernitus