-
Notifications
You must be signed in to change notification settings - Fork 151
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
Comments
Seems like i am unable to read... |
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?
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. |
death can be seen here: |
Bug report
Short description
Velocity related boss skills (in my case pull-all and throw-nearby) sometimes instakill players
Reproduction steps
Details
Additional info
The text was updated successfully, but these errors were encountered: