The Twilight Forest

The Twilight Forest

140M Downloads

Seeker Bow deals way too much damage

FloppaWithDrip opened this issue ยท 1 comments

commented

Forge version: 36.1.0
Twilight Forest version: 4.0.467

Steps to reproduce:

  1. Use seeker bow (used power 5 in my tests but it also does this without power)
  2. Shoot to the side of a target mob, not directly at it, the further to the side the more damage it does.

What I expected to happen: The bow deals a reasonable amount of damage, like less than half of what it currently does

What happened instead:
It did 93 damage in a single hit to the Ur-Ghast. Bow consistently deals above 80 damage.
This is probably caused by the 'aimbot' accelerating the arrow as it redirects to its target.

commented

This is probably caused by the 'aimbot' accelerating the arrow as it redirects to its target.

I donked and used the wrong variable here:

// add vector to target, scale to match current velocity
Vector3d newMotion = courseVec.scale(courseLen / totalLen).add(targetVec.scale(targetLen / totalLen));

targetVec.scale should also use courseLen / totalLen for the velocity to be correctly preserved.