Package ac.boar.anticheat.prediction
Class UncertainRunner
java.lang.Object
ac.boar.anticheat.prediction.UncertainRunner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatextraOffset(float offset) floatextraOffsetNonTickEnd(float offset) voidvoidNote: for anticheat developers on other platform, this code if when the player have the flag PUSH_TOWARDS_CLOSEST_SPACE if there isn't, the player can be instantly push out by bruteforce direction to push out then getting the direction with the smallest value (...) I can't remember the max value to be pushed out, maybe around 0.8+? but yep.
-
Constructor Details
-
UncertainRunner
public UncertainRunner()
-
-
Method Details
-
resolveUncertainBouncing
public void resolveUncertainBouncing() -
uncertainPushTowardsTheClosetSpace
public void uncertainPushTowardsTheClosetSpace()Note: for anticheat developers on other platform, this code if when the player have the flag PUSH_TOWARDS_CLOSEST_SPACE if there isn't, the player can be instantly push out by bruteforce direction to push out then getting the direction with the smallest value (...) I can't remember the max value to be pushed out, maybe around 0.8+? but yep. You can either do uncertainty or calculate it that way. However, without the flag getting into crawling mode is annoying and who knows is mojang going to break it or not. -
extraOffsetNonTickEnd
public float extraOffsetNonTickEnd(float offset) -
extraOffset
public float extraOffset(float offset)
-