Class UncertainRunner

java.lang.Object
ac.boar.anticheat.prediction.UncertainRunner

public class UncertainRunner extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    extraOffset(float offset)
     
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UncertainRunner

      public UncertainRunner()
  • Method Details

    • 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.
    • extraOffset

      public float extraOffset(float offset)