Начинающий
- Статус
- Оффлайн
- Регистрация
- 16 Сен 2025
- Сообщения
- 15
- Реакции
- 0
- Выберите загрузчик игры
- Fabric
Пожалуйста, авторизуйтесь для просмотра ссылки.
Java:
public class FTAngle extends RotateConstructor {
private final SecureRandom random = new SecureRandom();
private long lastAttackTime = 0;
private static final long holdRot = 1500;
public FTAngle() {
super("FunTime");
}
@Override
public Turns limitAngleChange(Turns currentAngle, Turns targetAngle, Vec3d vec3d, Entity entity) {
StrikeManager attackHandler = Luxe.getInstance().getAttackPerpetrator().getAttackHandler();
Aura aura = Aura.getInstance();
StopWatch attackTimer = attackHandler.getAttackTimer();
Turns angleDelta = MathAngle.calculateDelta(currentAngle, targetAngle);
float yawDelta = angleDelta.getYaw();
float pitchDelta = angleDelta.getPitch();
float rotationDifference = (float) Math.hypot(Math.abs(yawDelta), Math.abs(pitchDelta));
boolean canAttack = entity != null && attackHandler.canAttack(aura.getConfig(), 0);
if (canAttack) {
lastAttackTime = System.currentTimeMillis();
}
boolean shouldHoldRotation = (System.currentTimeMillis() - lastAttackTime) < holdRot;
float distanceToTarget = 0;
if (entity != null) {
assert mc.player != null;
distanceToTarget = mc.player.distanceTo(entity);
}
float baseSpeed = (canAttack || shouldHoldRotation) ? 0.87F : 0.56F;
if (distanceToTarget > 0 && distanceToTarget < 0.66F) {
float closeRangeSpeed = MathHelper.clamp(distanceToTarget / 1.5F * 0.35F, 0.1F, 0.7F);
baseSpeed = (canAttack || shouldHoldRotation) ? 0.85F : Math.min(baseSpeed, closeRangeSpeed);
}
float lineYaw = (Math.abs(yawDelta / rotationDifference) * 180);
float linePitch = (Math.abs(pitchDelta / rotationDifference) * 180);
float jitterYaw = (canAttack || shouldHoldRotation) ? 0
: (float) (randomLerp(10, 16) * Math.sin(System.currentTimeMillis() / 75D));
float jitterPitch = (canAttack || shouldHoldRotation) ? 0
: (float) (randomLerp(6, 12) * Math.sin(System.currentTimeMillis() / 40D));
if ((!aura.isState() || aura.getTarget() == null) && attackTimer.finished(1000) && !shouldHoldRotation) {
baseSpeed = 0.35F;
jitterYaw = 0;
jitterPitch = 0;
}
float moveYaw = MathHelper.clamp(yawDelta, -lineYaw, lineYaw);
float movePitch = MathHelper.clamp(pitchDelta, -linePitch, linePitch);
Turns moveAngle = new Turns(currentAngle.getYaw(), currentAngle.getPitch());
moveAngle.setYaw(MathHelper.lerp(baseSpeed, currentAngle.getYaw(), currentAngle.getYaw() + moveYaw) + jitterYaw);
moveAngle.setPitch(MathHelper.lerp(baseSpeed, currentAngle.getPitch(), currentAngle.getPitch() + movePitch) + jitterPitch);
return moveAngle;
}
private float randomLerp(float min, float max) {
return MathHelper.lerp(random.nextFloat(), min, max);
}
@Override
public Vec3d randomValue() {
return new Vec3d(0.01, 0.07, 0.02);
}
}
Вставляем в rotateToTarget:
Aura.rotateToTarget:
case "FunTime" -> {
if (attackHandler.canAttack(config, 5) || !attackHandler.getAttackTimer().finished(380)) {
controller.clear();
controller.rotateTo(rotation, target, 40, rotationConfig, TaskPriority.HIGH_IMPORTANCE_1, this);
}
}
Полностью обходит, 0 среза урона. Выбил 2кк играя с кит стартом на пвп арене, xD
Надеюсь зафиксят за пару дней/часов