Samofls9
Legendary Pika
- Joined
- Sep 19, 2020
- Messages
- 320
- Points
- 28
Minecraft Username:
Suggestion:
Detailed description:
Reason(s):
Samofls9
Suggestion:
Fix Anti Cheat Reach Detection.
Detailed description:
For those who do not understand what reach is, a legit player can hit around 3 blocks distance, if you have reach mod however you can reach up to 6 blocks.
Why should this be fixed:
I have played many games where people run around with 6 block reach making it nearly impossible to kill them, and even when checking the punishment page hours after, they are still not punished nor do they get kicked.
How to fix this:
Code the anti cheat in a better way so it detects reach, a good example of what reach code looks like it
// Refine y position.
// TODO: Make a little more accurate by counting in the actual bounding box.
final double pY = pLoc.getY() + player.getEyeHeight();
final double dY = dRef.getY();
if (pY <= dY); // Keep the foot level y.
else if (pY >= dY + height) dRef.setY(dY + height); // Highest ref y.
else dRef.setY(pY); // Level with damaged.
Should help you code the reach filter on the anti cheat.
Why should this be fixed:
I have played many games where people run around with 6 block reach making it nearly impossible to kill them, and even when checking the punishment page hours after, they are still not punished nor do they get kicked.
How to fix this:
Code the anti cheat in a better way so it detects reach, a good example of what reach code looks like it
// Refine y position.
// TODO: Make a little more accurate by counting in the actual bounding box.
final double pY = pLoc.getY() + player.getEyeHeight();
final double dY = dRef.getY();
if (pY <= dY); // Keep the foot level y.
else if (pY >= dY + height) dRef.setY(dY + height); // Highest ref y.
else dRef.setY(pY); // Level with damaged.
Should help you code the reach filter on the anti cheat.
Reason(s):