Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Velocity related boss skills sometimes instakill players #757

Open
fireheart3911 opened this issue Jan 29, 2023 · 3 comments
Open

Velocity related boss skills sometimes instakill players #757

fireheart3911 opened this issue Jan 29, 2023 · 3 comments
Labels
area/mobs Monster types, behavior, abilities, configuration. help wanted Please feel free to take a stab at this. type/bug Unintended behavior or fault.

Comments

@fireheart3911
Copy link

fireheart3911 commented Jan 29, 2023

Bug report

Short description

Velocity related boss skills (in my case pull-all and throw-nearby) sometimes instakill players

Reproduction steps

  1. Have a boss with said abilities and a low ability cooldown
  2. Run away from the boss
  3. Randomly die (Player hit the ground to hard)

Details

  • MobArena version: latest (0.107)
  • Server version: Paper 1.19.2 latest
  • Stacktrace - / -

Additional info

  • / -
@fireheart3911
Copy link
Author

Seems like i am unable to read...
Duplicate of #755

@fireheart3911 fireheart3911 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2023
@garbagemule
Copy link
Owner

I'm reopening here because this issue follows the template and has a more precise title.

For reference: throw-nearby ability code

All of the throw abilities use the same logic: calculate the direction vector from the boss towards the player on the XZ-plane, normalize it, and then set a fixed Y-value of 0.8. The idea is that the direction becomes "up and away" from the player's current location. The pull abilities work on a similar basis, although with a bit of scaling sprinkled in right after normalizing but before setting the fixed Y-value (the reasoning is lost to time as the code is old and my commit messages were useless back then).

I don't have much of a clue about what could be causing the issue. If the death message is that they "hit the ground too hard", it's most likely because the change to player velocity causes some sort of "slamming". That is, the server thinks that the player has fallen instead of being launched up in the air, perhaps due to some sort of clipping issues where the player is technically "under" the block they are standing on, and that's causing the velocity to drive them "into" the block for fall damage..?

Can we gather some more details about the context in which players are dying to this glitch?

  • Do the players die immediately when the ability is executed, or is it after being launched up in the air and landing back on the ground?
  • Are they on the ground or in the air when the ability is executed?
  • Is it all players in the session or just some of them? If only some, what is different about them?

I could perhaps make a build that sets the player fall distance to 0 prior to setting the velocity, or one that teleports the player up by half a block in the same tick, but it's very much fumbling in the dark, especially because it's an intermittent glitch rather than a reproducible bug. Alternatively, I could add some log statements to the player location and velocity and perhaps some other available data points, maybe both during the ability execution and the player death event. Or maybe both. Either way, I'd need some help trying it out for a while, since I don't run a server and I can't reproduce the issue myself. If you (@fireheart3911) and/or @Drizzt11 would be interested in that, hop on Discord and I'll try to whip something up for you to try.

@garbagemule garbagemule reopened this Jan 29, 2023
@garbagemule garbagemule added type/bug Unintended behavior or fault. area/mobs Monster types, behavior, abilities, configuration. help wanted Please feel free to take a stab at this. labels Jan 29, 2023
@fireheart3911
Copy link
Author

death can be seen here:
https://youtu.be/1skd11WXXsA?t=554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mobs Monster types, behavior, abilities, configuration. help wanted Please feel free to take a stab at this. type/bug Unintended behavior or fault.
Projects
None yet
Development

No branches or pull requests

2 participants