- Статус
- Оффлайн
- Регистрация
- 22 Авг 2023
- Сообщения
- 379
- Реакции
- 28
- Выберите загрузчик игры
- Fabric
RATATEON...:
public class SpookyTimeRotation extends RotationService {
private final Timer stopWatch = new Timer();
public SpookyTimeRotation(ListSetting setting) {
super(setting, "SpookyTime");
}
@Override
public void updateRotation(RotationHandler handler, float speed, boolean isPredict, boolean isSmooth, RotationState state, LivingEntity target) {
Rotation currentRotations = RockstarClientBootstrap.getInstance().getRotationManager().getRotations();
Rotation targetRotations = RotationUtils.getNeededRotations(target, this.getRotationConfig());
targetRotations = targetRotations.add(MathUtils.getRandom(-5.0f, 5.0f), MathUtils.getRandom(-5.0f, 5.0f));
if (MovementUtils.isMoving(target)) {
double heightDiff = Minecraft.player.getY() - target.getY() + 1.0;
float sinOffset = (float)(5.0 + Math.sin(Minecraft.player.age % 69 / 5 * 1512) * 35.0);
float pitch = (float)(62.0 + heightDiff * MathUtils.getRandom(-1.0f, sinOffset) - 5.0 + 10.0);
targetRotations.setPitch(pitch);
}
float yawSpeed = MathUtils.getRandom(60.0f, 80.0f);
float pitchSpeed = MathUtils.getRandom(40.0f, 80.0f);
boolean isLookingAtTarget = RotationUtils.isMouseOver(speed, currentRotations.getYaw(), currentRotations.getPitch(), Minecraft.player, target, !isPredict);
if (isLookingAtTarget) {
yawSpeed = MathUtils.getRandom(5.0f, 12.0f);
pitchSpeed = MathUtils.getRandom(5.0f, 12.0f);
} else {
this.stopWatch.reset();
}
handler.apply(targetRotations, state, yawSpeed, pitchSpeed, 180.0f, RotationMode.FIXED);
}
@Override
public boolean isTargetLocked() {
return this.stopWatch.hasPassed(100L);
}
}
Че там, до сих пор фейк вброс и ничего у нас нет?) хех.. Goonglang сила..
Пожалуйста, авторизуйтесь для просмотра ссылки.