Skip to content
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

Aimbot still working #258

Open
john01dav opened this issue Jan 6, 2014 · 2 comments
Open

Aimbot still working #258

john01dav opened this issue Jan 6, 2014 · 2 comments

Comments

@john01dav
Copy link

Hello, when I was testing this plugin for my mini-games server I noticed that nodus aimbot still works even with the pluign installed. Even if the player with nodus is 100+ blocks away and facing the complete opposite direction of the arrow target.

EDIT: Couldn't this be done with a simple raycast the distance between the target and then checking the distance and if the distance is too long than there is a hacker?

@gravitylow
Copy link
Owner

I don't use NMS in AntiCheat, it's API-only. In addition to this, the solution you have proposed would only determine whether someone is too far away from a player when they attack them. That description matches a longreach hack, not an aimbot.

@john01dav
Copy link
Author

I do not belive that you understand what I am trying to say, I will attempt to simplify it in a step by step process to be executed in the EntityDamagedByEntityEvent

  1. check if the damager isntanceof Player if not then return
  2. check if the cause of damage is arrows
  3. determine the distance between the damaged entity and the attacker
  4. using your own raycast formula (possibly pulled from bukkit source, but located within your own code so it does not rely on nms) draw a ray (technically line) from the player's head direction. the length of this line is the distance calculated in step 3
  5. determine the closes point on the line to the damaged entity
  6. calculate the distance between the damaged entity and the point from step 5
  7. if the distance calculated in step 6 is too far away (calculated based on how far away the target is from the attacker (calculated in step 3)) then you have a hacker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants