Начинающий
Начинающий
- Статус
- Оффлайн
- Регистрация
- 14 Июл 2025
- Сообщения
- 15
- Реакции
- 0
Кто поможет буду очень рад
$$eflcode
case "Spooky" -> {
Vector3d targetPos = this.target.getPositionVec();
double diffX = targetPos.x - mc.player.getPosX();
double diffY = targetPos.y - (mc.player.getPosY() + mc.player.getEyeHeight());
double diffZ = targetPos.z - mc.player.getPosZ();
double dist = MathHelper.sqrt(diffX * diffX + diffZ * diffZ);
float targetYaw = (float)(Math.atan2(diffZ, diffX) * 180.0D / Math.PI) - 90.0F;
float targetPitch = (float)(-(Math.atan2(diffY, dist) * 180.0D / Math.PI));
float deltaYaw = MathHelper.wrapDegrees(targetYaw - this.rotateVector.x);
float deltaPitch = targetPitch - this.rotateVector.y;
float turnSpeedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1.0F), 65.4F);
float turnSpeedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1.0F), 10.2F);
float addYaw = deltaYaw > 0.0F ? turnSpeedYaw : -turnSpeedYaw;
float addPitch = deltaPitch > 0.0F ? turnSpeedPitch : -turnSpeedPitch;
float newYaw = this.rotateVector.x + addYaw;
float newPitch = this.rotateVector.y + addPitch;
float time = (float)(System.currentTimeMillis() % 10000L) / 500.0F;
newYaw += Math.sin(time * 2.0F * Math.PI * 2.8F) * 4.7F;
newPitch += Math.sin(time * 2.0F * Math.PI * 1.6F) * 3.2F;
newPitch = MathHelper.clamp(newPitch, -90.0F, 90.0F);
this.rotateVector = new Vector2f(newYaw, newPitch);
if (this.options.get(4).get()) {
mc.player.rotationPitchOffset = newPitch;
mc.player.rotationYawOffset = newYaw;
}
}
$$eflcode
case "Spooky" -> {
Vector3d targetPos = this.target.getPositionVec();
double diffX = targetPos.x - mc.player.getPosX();
double diffY = targetPos.y - (mc.player.getPosY() + mc.player.getEyeHeight());
double diffZ = targetPos.z - mc.player.getPosZ();
double dist = MathHelper.sqrt(diffX * diffX + diffZ * diffZ);
float targetYaw = (float)(Math.atan2(diffZ, diffX) * 180.0D / Math.PI) - 90.0F;
float targetPitch = (float)(-(Math.atan2(diffY, dist) * 180.0D / Math.PI));
float deltaYaw = MathHelper.wrapDegrees(targetYaw - this.rotateVector.x);
float deltaPitch = targetPitch - this.rotateVector.y;
float turnSpeedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1.0F), 65.4F);
float turnSpeedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1.0F), 10.2F);
float addYaw = deltaYaw > 0.0F ? turnSpeedYaw : -turnSpeedYaw;
float addPitch = deltaPitch > 0.0F ? turnSpeedPitch : -turnSpeedPitch;
float newYaw = this.rotateVector.x + addYaw;
float newPitch = this.rotateVector.y + addPitch;
float time = (float)(System.currentTimeMillis() % 10000L) / 500.0F;
newYaw += Math.sin(time * 2.0F * Math.PI * 2.8F) * 4.7F;
newPitch += Math.sin(time * 2.0F * Math.PI * 1.6F) * 3.2F;
newPitch = MathHelper.clamp(newPitch, -90.0F, 90.0F);
this.rotateVector = new Vector2f(newYaw, newPitch);
if (this.options.get(4).get()) {
mc.player.rotationPitchOffset = newPitch;
mc.player.rotationYawOffset = newYaw;
}
}
детектит за 2 критаКто поможет буду очень рад
$$eflcode
case "Spooky" -> {
Vector3d targetPos = this.target.getPositionVec();
double diffX = targetPos.x - mc.player.getPosX();
double diffY = targetPos.y - (mc.player.getPosY() + mc.player.getEyeHeight());
double diffZ = targetPos.z - mc.player.getPosZ();
double dist = MathHelper.sqrt(diffX * diffX + diffZ * diffZ);
float targetYaw = (float)(Math.atan2(diffZ, diffX) * 180.0D / Math.PI) - 90.0F;
float targetPitch = (float)(-(Math.atan2(diffY, dist) * 180.0D / Math.PI));
float deltaYaw = MathHelper.wrapDegrees(targetYaw - this.rotateVector.x);
float deltaPitch = targetPitch - this.rotateVector.y;
float turnSpeedYaw = Math.min(Math.max(Math.abs(deltaYaw), 1.0F), 65.4F);
float turnSpeedPitch = Math.min(Math.max(Math.abs(deltaPitch), 1.0F), 10.2F);
float addYaw = deltaYaw > 0.0F ? turnSpeedYaw : -turnSpeedYaw;
float addPitch = deltaPitch > 0.0F ? turnSpeedPitch : -turnSpeedPitch;
float newYaw = this.rotateVector.x + addYaw;
float newPitch = this.rotateVector.y + addPitch;
float time = (float)(System.currentTimeMillis() % 10000L) / 500.0F;
newYaw += Math.sin(time * 2.0F * Math.PI * 2.8F) * 4.7F;
newPitch += Math.sin(time * 2.0F * Math.PI * 1.6F) * 3.2F;
newPitch = MathHelper.clamp(newPitch, -90.0F, 90.0F);
this.rotateVector = new Vector2f(newYaw, newPitch);
if (this.options.get(4).get()) {
mc.player.rotationPitchOffset = newPitch;
mc.player.rotationYawOffset = newYaw;
}
}