attack distance limit and sight attack (definitive-anti-cheat-plugin) 1.12.2

detect the player vision and distance attack calculating player look yaw pitch head sight vision

  1. BatemanBR
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    this new plugin uses a more accurate method to calculate the angle: https://www.spigotmc.org/resources/sight-angle-attack-calculation.85021/

    and you can mix it with attack reach: https://www.spigotmc.org/resources/attack-reach.84980/

    although I created 2 separate plugins with better precision, do not delete this plugin, maybe one day it can still be useful, programmers are always going back and forth to the same place and what doesn't work today can work tomorrow.

    this plugin detects coast attacks by kill aurea where the player is not looking and cancels.

    I've tested dozens of anti cheat from bukkit plugins and spigot plugins and I’ve never seen an no cheat that does what this plugin does.





    it also limits the attack range to 2, as the normal is 2 blocks away to attack and the kill aurea can reach 4 blocks away.

    I tested it on a spigot 1.12 server and used protocol support to use nodus in version 1.8 of minecraft

    source: https://repl.it/@BatemanBR/SightAttack#attackdistance/start.java

    sightkick is kick if the attack for kill aurea where the player is not looking yaw pitch body head in the entity target but the plugin cancell this attacks types same without kick config.

    debug work with the natural minecraft distance same with the limit of the plugin in the blockdistance config. my tests was 3.4 in the survival mode same without op and desloging after remove op and 5 distance in the creative

    the reach of the minecraft client depends on whether you are diagonal or not, my calculations were done horizontally because I was in a straight line so the range is greater than diagonal attacks.

    upload_2020-10-3_22-19-58.png

    upload_2020-10-3_22-20-7.png
    upload_2020-10-2_21-24-17.png

    I use the windows taskbar because it uses memory ram that is faster than the windows start menu that looks for in the SSD which is slower than ram memory.

    Images

    1. upload_2020-10-3_14-3-54.png