mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Small changes to reach check, redid aimbot check, improved default config
Prepared for release.
This commit is contained in:
1 parent
67e6f0df62
commit
5c85b8717b
5 files changed
+26
-37
No files matched your search
@@ -85,11 +85,11 @@ public final class KillAuraCheck {
|
||||
// Velocity compensation
|
||||
final double velocityMultiplier = checksConfig.getDouble(CheckType.KILLAURA, "reach", "velocityMultiplier");
|
||||
allowedReach += Math.abs(target.getVelocity().length()) * velocityMultiplier;
|
||||
final double reachedDistance = ((LivingEntity) target).getLocation().toVector()
|
||||
.distance(player.getLocation().toVector());
|
||||
if (reachedDistance > allowedReach) {
|
||||
final double reachedDistance = Utilities.roundDouble(((LivingEntity) target).getLocation().toVector()
|
||||
.distance(player.getLocation().toVector()), 2);
|
||||
if (reachedDistance > Utilities.roundDouble(allowedReach, 2)) {
|
||||
return new CheckResult(CheckResult.Result.FAILED, "Reach",
|
||||
"reached too far (distance=" + Utilities.roundDouble(reachedDistance, 6) + ", max=" + Utilities.roundDouble(allowedReach, 6) + ")");
|
||||
"reached too far (distance=" + reachedDistance + ", max=" + Utilities.roundDouble(allowedReach, 2) + ")");
|
||||
}
|
||||
return PASS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user