-
Notifications
You must be signed in to change notification settings - Fork 401
fix false positive when being inside the edge of a block #2013
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
base: 2.0
Are you sure you want to change the base?
Conversation
using uncertainty seems wrong, this should be fixed properly |
So should grim be able to accurately predict movement like that? Do you have any specific idea in mind? It would also be possible to just force push the player out of the block (But im not sure if thats "intended" as that would change vanilla behavior) |
I have a feeling this will false at high speeds |
Are we detecting if the player is in a block properly? If not, fix that |
changing the uncertainty value from 0.1 to 0.17 fixes the false positive. (0.17 was the value where the values where consistently green) But at high speeds (speed lvl ~50+; im assuming more than 1m/tick) the game client lets the player pass through the block. output.mp4 |
currently testing this on every version. and im having trouble getting the plugin to work on 1.13+ gradle tells me i need java 16+ to build the plugin, but the papermc 1.13 server requires java 13 or older any tips for properly building the plugin for those versions? |
See "other versions": https://github.com/GrimAnticheat/Grim/wiki/Updating-to-Java-17#other-versions |
I tested this so far with the following versions:
In versions 1.14+ This issue does not exist (the player doesn't "bug around" like in the older versions)
(see clip above) Let me know how we should handle this and then the PR would be ready. |
@ManInMyVan
i believe it's fine to do it here, as the original implementation for handling pushing did so too (the uncertainty was just a bit to low) |
Is there any reason for the uncertainty to be 0.17 in 1.14.4+ ? |
closes #2000 (Happens with all blocks that the player can collide with, not just gravity blocks)
Currently tested on 1.8.8/1.8.9 (same version as in issue).
I will do some more testing on other versions before marking it as ready.
let me know if there is anything important i need to consider when using
isNearGlitchyBlock
, i just used it here to increase the collision threshold when the player is partially inside a block.