getKnockback() ?

Discussion in 'Plugin Development' started by Gingerbreadman, Nov 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Gingerbreadman

    Hello everyone, I am working on a plugin
    and I need to know, is there any way of getting the knockback value of each hit [I want to make a plugin to stop antiknockback]
     
  2. Offline

    Skionz

    Gingerbreadman Try checking when the player gets damaged and set their velocity to a new vector such as
    Code:
    new Vector(0, 0, 0);
     
  3. Skionz
    I believe he is trying to detect the client-side hack called anti knockback (which should be quite self explanatory).
     
  4. Offline

    Skionz

    Assist My bad, thanks for correcting me :D
    Gingerbreadman You could do the opposite by checking when the player gets hit and getting their velocity. If I can remember correctly anti-knockback sends a velocity packets to the server that says that they are still so you would basically check if the players velocity isn't moving and if so you would apply a vector to them.
    EDIT: The event is called before the player gets hit so you would probably have to add a delay.
     
    Spinalvine89 likes this.
Thread Status:
Not open for further replies.

Share This Page