- Выберите загрузчик игры
- Forge
- ForgeOptiFine
Спуки анку обходит досихпор спокойно
Storm 1.21.4 Base (noad)
[
Code:
Storm 1.21.4 Base (noad)
[
Пожалуйста, авторизуйтесь для просмотра ссылки.
]Code:
JavaScript:
private void updateSpookyTime(LivingEntity target) {
if (target == null) return;
boolean elytraDuel = mc.player.isGliding();
if (!elytraDuel && System.currentTimeMillis() - lastPhysicalMoveTime > 100) {
return;
} else if (System.currentTimeMillis() - lastPhysicalMoveTime < 100) {
this.lastYaw = mc.player.getYaw();
this.lastPitch = mc.player.getPitch();
}
Vec3d point = resolveMultipoint(target, BestPoint.getPoint(target), 6);
if (elytraDuel && target.isGliding()) {
point = PredictUtils.predict(target, 3f);
}
Vec3d eyePos = mc.player.getEyePos();
double deltaX = point.x - eyePos.x;
double deltaY = point.y - eyePos.y;
double deltaZ = point.z - eyePos.z;
double distance = Math.sqrt(deltaX * deltaX + deltaZ * deltaZ);
float targetYaw = (float) (Math.toDegrees(Math.atan2(deltaZ, deltaX)) - 90.0);
float targetPitch = (float) (-Math.toDegrees(Math.atan2(deltaY, distance)));
float radius = (float) assistRadius.getValue();
var box = target.getBoundingBox();
boolean isAimed = RaytraceUtil.rayTrace(mc.player.getRotationVector(), 6, box.expand(radius, radius, radius));
float speed;
if (isAimed) {
speed = (float) assistSpeedAimed.getValue()* 0.25f;
} else if (mc.player.isGliding()) {
speed = 8f;
} else if (mc.player.isOnGround()) {
speed = (float) assistSpeedGround.getValue() * 0.25f;
} else {
speed = (float) assistSpeedAir.getValue() * 0.25f;
}
float cooldownMultiplier = (mc.player.getAttackCooldownProgress(0.5f) > 0.85f) ? 1.2f : 0.4f;
speed *= cooldownMultiplier;
if (!RaytraceUtil.rayTrace(mc.player.getRotationVector(), 6, box.expand(radius + 0.1f, radius + 0.1f, radius + 0.1f))) {
speedAcceleration += 0.0005f * cooldownMultiplier;
} else if (speedAcceleration >= -0.01f) {
speedAcceleration -= 0.0004f;
}
float smooth = Math.max(speedAcceleration, 0);
speed += smooth + (float) ((Math.random() - 0.5) * 0.02);
float yawDelta = MathHelper.wrapDegrees(targetYaw - lastYaw);
float pitchDelta = targetPitch - lastPitch;
float clampedYawDelta = MathHelper.clamp(yawDelta, -speed, speed);
float clampedPitchDelta = MathHelper.clamp(pitchDelta, -speed, speed);
float newYaw = lastYaw + clampedYawDelta;
float newPitch = MathHelper.clamp(lastPitch + clampedPitchDelta, -89.9F, 89.9F);
float gcd = GCDFixer.getGCDValue();
if (gcd > 0.0F) {
newYaw = lastYaw + (float) Math.round((newYaw - lastYaw) / gcd) * gcd;
newPitch = lastPitch + (float) Math.round((newPitch - lastPitch) / gcd) * gcd;
}
var smoothRot = new Rotation(newYaw, newPitch);
RotationComponent.update(smoothRot, 360, 360, 360, 360, 0, 1, clientLook.getValue());
this.lastYaw = smoothRot.getYaw();
this.lastPitch = smoothRot.getPitch();
}