Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Часть функционала Spookytime типо т1 килка(не моя)

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
27 Май 2024
Сообщения
32
Реакции
0
Выберите загрузчик игры
  1. Vanilla
  2. Forge
  3. Fabric
  4. NeoForge
  5. OptiFine
  6. ForgeOptiFine
  7. Прочие моды
какая то фришка заявила что у нее т1 килка под сп а я ее сливаю вам

ss-сами гляните


java:
Expand Collapse Copy
/*
 * Decompiled with CFR 0.152.
 *
 * Could not load the following classes:
 *  lombok.Generated
 *  net.minecraft.block.Block
 *  net.minecraft.block.SlabBlock
 *  net.minecraft.client.Minecraft
 *  net.minecraft.entity.Entity
 *  net.minecraft.entity.LivingEntity
 *  net.minecraft.fluid.FluidState
 *  net.minecraft.tags.FluidTags
 *  net.minecraft.tags.ITag
 *  net.minecraft.util.math.BlockPos
 *  net.minecraft.util.math.MathHelper
 *  net.minecraft.util.math.shapes.ISelectionContext
 *  net.minecraft.util.math.vector.Vector3d
 *  net.minecraft.world.IBlockReader
 *  ru.alekdlc.client.api.interfaces.IMinecraft
 *  ru.alekdlc.client.managers.component.impl.rotation.Rotation
 *  ru.alekdlc.client.managers.component.impl.rotation.RotationComponent
 *  ru.alekdlc.client.managers.module.impl.combat.rotation.SpookyTimeRotation
 *  ru.alekdlc.client.managers.module.impl.combat.rotation.SpookyTimeRotation$BodyPoint
 *  ru.alekdlc.client.utils.math.Mathf
 *  ru.alekdlc.client.utils.time.TimerUtil
 */
package ru.alekdlc.client.managers.module.impl.combat.rotation;

import java.util.concurrent.ThreadLocalRandom;
import lombok.Generated;
import net.minecraft.block.Block;
import net.minecraft.block.SlabBlock;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.fluid.FluidState;
import net.minecraft.tags.FluidTags;
import net.minecraft.tags.ITag;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.vector.Vector3d;
import net.minecraft.world.IBlockReader;
import ru.alekdlc.client.api.interfaces.IMinecraft;
import ru.alekdlc.client.managers.component.impl.rotation.Rotation;
import ru.alekdlc.client.managers.component.impl.rotation.RotationComponent;
import ru.alekdlc.client.managers.module.impl.combat.rotation.SpookyTimeRotation;
import ru.alekdlc.client.utils.math.Mathf;
import ru.alekdlc.client.utils.time.TimerUtil;

/*
 * Exception performing whole class analysis ignored.
 */
public final class SpookyTimeRotation
implements IMinecraft {
    static float tick = 0.0f;
    private static int currentPointIndex = 0;
    private static int previousPointIndex = 0;
    private final static TimerUtil switchTimer = new TimerUtil();
    private final static TimerUtil transitionTimer = new TimerUtil();
    private static long nextSwitchDelay = ThreadLocalRandom.current().nextLong(1000L, 1600L);
    private static boolean isTransitioning = false;
    private final static long TRANSITION_DURATION = 1200L;

    private static boolean isPlayerInWater() {
        if (SpookyTimeRotation.mc.player == null || Minecraft.world == null) {
            return false;
        }
        BlockPos blockPos = new BlockPos(SpookyTimeRotation.mc.player.getPosX(), SpookyTimeRotation.mc.player.getPosYEye(), SpookyTimeRotation.mc.player.getPosZ());
        FluidState fluidState = Minecraft.world.getFluidState(blockPos);
        if (fluidState.isTagged((ITag)FluidTags.WATER)) {
            return true;
        }
        return SpookyTimeRotation.mc.player.isInWater();
    }

    private static boolean isInWaterContext() {
        if (SpookyTimeRotation.mc.player == null) {
            return false;
        }
        return SpookyTimeRotation.mc.player.isInWater() || SpookyTimeRotation.mc.player.isInLava();
    }

    private static Vector3d getBodyPoint(LivingEntity livingEntity, BodyPoint bodyPoint) {
        double d = livingEntity.getPosX();
        double d2 = livingEntity.getPosY() + (double)(livingEntity.getHeight() * bodyPoint.getHeightMultiplier());
        double d3 = livingEntity.getPosZ();
        return new Vector3d(d, d2, d3);
    }

    private static void switchToNextPoint() {
        previousPointIndex = currentPointIndex;
        currentPointIndex = (currentPointIndex + 1) % BodyPoint.values().length;
        nextSwitchDelay = ThreadLocalRandom.current().nextLong(800L, 1400L);
        switchTimer.reset();
        transitionTimer.reset();
        isTransitioning = true;
    }

    public static void rotation(LivingEntity livingEntity, boolean bl, float f, boolean bl2) {
        float f2;
        float f3;
        float f4;
        float f5;
        Vector3d vector3d;
        float f6;
        float f7;
        Vector3d vector3d2;
        BodyPoint currentBodyPoint;
        float f8;
        if (livingEntity == null || SpookyTimeRotation.mc.player == null) {
            return;
        }
        double d = SpookyTimeRotation.mc.player.getDistance((Entity)livingEntity);
        boolean bl3 = SpookyTimeRotation.isInWaterContext();
        float f9 = 1.0f;
        double d2 = Math.hypot(SpookyTimeRotation.mc.player.motion.x, SpookyTimeRotation.mc.player.motion.z);
        float f10 = 1.0f;
        if (d2 > 0.2) {
            double d3 = bl3 ? 0.15 : 0.2;
            double d4 = bl3 ? 1.0 : 1.5;
            f10 = MathHelper.clamp((float)((float)(1.0 - (d2 - d3) * d4)), (float)(bl3 ? 0.55f : 0.4f), 1.0f);
        }
        float f11 = 1.0f;
        if (Minecraft.world != null) {
            BlockPos blockPos = new BlockPos(SpookyTimeRotation.mc.player.getPosX(), SpookyTimeRotation.mc.player.getPosY() - 0.1, SpookyTimeRotation.mc.player.getPosZ());
            Block block = Minecraft.world.getBlockState(blockPos).getBlock();
            if (block instanceof SlabBlock) {
                f11 = 0.5f;
            } else {
                try {
                    double d5 = Minecraft.world.getBlockState((BlockPos)blockPos).getCollisionShape((IBlockReader)Minecraft.world, (BlockPos)blockPos, (ISelectionContext)ISelectionContext.dummy()).getBoundingBox().maxY;
                    if (d5 < 1.0 && d5 > 0.0) {
                        f11 = MathHelper.clamp((float)((float)(0.3 + d5 * 0.4)), 0.3f, 0.7f);
                    }
                }
                catch (Exception exception) {
                    f11 = 1.0f;
                }
            }
        }
        float f12 = f9 * f10 * f11;
        boolean bl4 = false;
        boolean bl5 = false;
        if (bl) {
            tick = 4.0f;
        }
        if (tick > 0.0f) {
            bl4 = true;
            tick -= 1.0f;
        }
        float f82 = SpookyTimeRotation.mc.player.getCooledAttackStrength(1.5f);
        bl5 = f8 >= 0.85f && f82 < 1.0f;
        boolean bl6 = bl5;
        if (bl3) {
            bl5 = f82 >= 0.8f && f82 < 1.0f;
        }
        float f13 = 1.0f;
        if (bl4 || bl5) {
            f13 = bl3 ? 0.2f : 0.3f;
        }
        float f14 = f12 * f13;
        float f15 = f12 * (!bl4 && !bl5 ? 1.0f : (bl3 ? 0.3f : 0.4f));
        if (switchTimer.isReached(nextSwitchDelay)) {
            SpookyTimeRotation.switchToNextPoint();
        }
        if (nextSwitchDelay < 1000L) {
            nextSwitchDelay = ThreadLocalRandom.current().nextLong(1000L, 1600L);
        }
        BodyPoint[] bodyPointArray = BodyPoint.values();
        if (isTransitioning && transitionTimer.getTime() < 1200L) {
            bodyPoint = bodyPointArray[previousPointIndex];
            currentBodyPoint = bodyPointArray[currentPointIndex];
            vector3d2 = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)bodyPoint);
            Vector3d transitionTarget = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)currentBodyPoint);
            f7 = MathHelper.clamp((float)((float)transitionTimer.getTime() / 1200.0f), 0.0f, 1.0f);
            f6 = f7 < 0.5f ? 16.0f * f7 * f7 * f7 * f7 * f7 : 1.0f - (float)Math.pow(-2.0f * f7 + 2.0f, 5.0) / 2.0f;
            vector3d = new Vector3d(MathHelper.lerp((double)f6, (double)vector3d2.x, (double)transitionTarget.x), MathHelper.lerp((double)f6, (double)vector3d2.y, (double)transitionTarget.y), MathHelper.lerp((double)f6, (double)vector3d2.z, (double)transitionTarget.z));
        } else {
            if (isTransitioning) {
                isTransitioning = false;
            }
            bodyPoint = bodyPointArray[currentPointIndex];
            vector3d = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)bodyPoint);
        }
        Vector3d eyePosition = SpookyTimeRotation.mc.player.getEyePosition(mc.getRenderPartialTicks());
        vector3d2 = vector3d;
        if (bl4 || bl5) {
            currentBodyPoint = bl3 ? BodyPoint.CHEST : (d > 2.5 ? BodyPoint.CHEST : BodyPoint.HEAD);
            vector3d2 = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)currentBodyPoint);
        }
        double d6 = System.currentTimeMillis();
        f7 = (float)Math.cos(d6 / 85.0);
        f6 = (float)Math.sin(d6 / 95.0);
        float f16 = (0.036f * f7 + 0.032f * f6) * f15;
        float f17 = (float)Math.cos(d6 / 60.0);
        float f18 = (float)Math.sin(d6 / 55.0);
        float f19 = (0.044f * f17 + 0.04f * f18) * f15;
        float f20 = (float)Math.cos(d6 / 150.0);
        float f21 = (float)Math.sin(d6 / 180.0);
        float f22 = (0.13f * f20 + 0.11f * f21) * f15;
        float f23 = (float)Math.cos(d6 / 200.0);
        float f24 = (float)Math.sin(d6 / 240.0);
        float f25 = (0.13f * f23 + 0.11f * f24) * f15;
        float f26 = (float)Math.cos(d6 / 220.0);
        float f27 = (float)Math.sin(d6 / 230.0);
        float f28 = (0.16f * f26 + 0.13f * f27) * f15;
        Vector3d vector3d3 = vector3d2.add((double)((f25 + f19) * f15), (double)(f16 * 0.15f * f15), (double)(f28 * f15)).subtract(eyePosition).normalize();
        float f29 = (float)Math.toDegrees(Math.atan2(-vector3d3.x, vector3d3.z));
        float f30 = (float)MathHelper.clamp((double)(-Math.toDegrees(Math.atan2(vector3d3.y, Math.hypot(vector3d3.x, vector3d3.z)))), -90.0, 90.0);
        double d7 = 50.0 + Math.random() * 60.0;
        double d8 = 55.0 + Math.random() * 65.0;
        double d9 = 60.0 + Math.random() * 70.0;
        double d10 = 65.0 + Math.random() * 75.0;
        double d11 = 58.0 + Math.random() * 68.0;
        double d12 = 62.0 + Math.random() * 72.0;
        float f31 = (float)Math.cos(d6 / d7);
        float f32 = (float)Math.sin(d6 / d8);
        float f33 = (float)Math.cos(d6 / d9);
        float f34 = (float)Math.sin(d6 / d10);
        float f35 = (float)Math.cos(d6 / d11);
        float f36 = (float)Math.sin(d6 / d12);
        float f37 = 0.0f;
        if (bl4) {
            f37 = ThreadLocalRandom.current().nextLong(-1L, 1L);
        }
        float f38 = bl3 ? 0.65f : 1.0f;
        float f39 = (float)(Math.random() * 2.8) * f14 * f38;
        float f40 = (float)(Math.random() * 3.0) * f14 * f38;
        float f41 = (float)(Math.random() * 2.9) * f14 * f38;
        float f42 = (float)(Math.random() * 2.6) * f14 * f38;
        float f43 = (float)ThreadLocalRandom.current().nextDouble(-1.6, 1.6) * f14 * f38;
        float f44 = (float)(Math.random() * 4.4) * f14;
        float f45 = Mathf.smoothRandom(3.6f, 4.8f, 1.0f) * f14;
        float f46 = (float)(Math.random() * 4.6) * f14;
        float f47 = (float)(Math.random() * 4.5) * f14;
        float f48 = (float)(Math.random() * 4.3) * f14;
        float f49 = (float)(Math.random() * 4.4) * f14;
        float f50 = (float)(Math.random() * 4.8) * f14;
        float f51 = (float)(Math.random() * 4.2) * f14;
        float f52 = (float)ThreadLocalRandom.current().nextDouble(-2.8, 2.8) * f14;
        float f53 = (float)(Math.random() * 4.3) * f14;
        float f54 = (float)ThreadLocalRandom.current().nextDouble(-2.6, 2.6) * f14;
        float f55 = (f39 * f32 + f31 * f40 + f33 * f41 + f34 * f42 + f35 * f43 + f36 * (float)(Math.random() * 2.2) + (float)(Math.random() * 2.1) + (float)ThreadLocalRandom.current().nextDouble(-1.4, 1.4)) * f14 * 0.9f;
        float f56 = (f44 * f31 + f32 * f45 + f33 * f46 + f34 * f47 + f48 * f35 + f49 * f36 + f50 * f31 + f51 * f32 + f52 * f33 + f53 * f34 + f54 * f35 + (float)(Math.random() * 4.8) - 2.4f + (float)ThreadLocalRandom.current().nextDouble(-2.6, 2.6) + (float)ThreadLocalRandom.current().nextDouble(-1.8, 1.8)) * f14 * 1.2f;
        if (!bl4 && !bl5) {
            f5 = Mathf.randomValue(1.8f, 2.8f);
            f4 = Mathf.randomValue(18.0f, 26.0f);
        } else {
            f5 = bl3 ? Mathf.randomValue(1.0f, 1.8f) : Mathf.randomValue(1.2f, 2.0f);
            f4 = bl3 ? Mathf.randomValue(14.0f, 20.0f) : Mathf.randomValue(12.0f, 18.0f);
        }
        float f57 = MathHelper.clamp((float)(f30 + f56 + f37), -90.0f, 90.0f);
        Rotation rotation = new Rotation(f29 + f55 + f37, f57);
        if (!bl4 && !bl5) {
            f3 = Mathf.randomValue(20.0f, 28.0f);
            f2 = Mathf.randomValue(11.0f, 16.0f);
        } else {
            f3 = bl3 ? Mathf.randomValue(18.0f, 24.0f) : Mathf.randomValue(16.0f, 22.0f);
            f2 = bl3 ? Mathf.randomValue(9.0f, 14.0f) : Mathf.randomValue(8.0f, 13.0f);
        }
        RotationComponent.update((Rotation)rotation, (float)f4, (float)f5, (float)f3, (float)f2, 0, 15, (boolean)false);
    }

    @Generated
    private SpookyTimeRotation() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }
}
 
какая то фришка заявила что у нее т1 килка под сп а я ее сливаю вам

ss-сами гляните


java:
Expand Collapse Copy
/*
 * Decompiled with CFR 0.152.
 *
 * Could not load the following classes:
 *  lombok.Generated
 *  net.minecraft.block.Block
 *  net.minecraft.block.SlabBlock
 *  net.minecraft.client.Minecraft
 *  net.minecraft.entity.Entity
 *  net.minecraft.entity.LivingEntity
 *  net.minecraft.fluid.FluidState
 *  net.minecraft.tags.FluidTags
 *  net.minecraft.tags.ITag
 *  net.minecraft.util.math.BlockPos
 *  net.minecraft.util.math.MathHelper
 *  net.minecraft.util.math.shapes.ISelectionContext
 *  net.minecraft.util.math.vector.Vector3d
 *  net.minecraft.world.IBlockReader
 *  ru.alekdlc.client.api.interfaces.IMinecraft
 *  ru.alekdlc.client.managers.component.impl.rotation.Rotation
 *  ru.alekdlc.client.managers.component.impl.rotation.RotationComponent
 *  ru.alekdlc.client.managers.module.impl.combat.rotation.SpookyTimeRotation
 *  ru.alekdlc.client.managers.module.impl.combat.rotation.SpookyTimeRotation$BodyPoint
 *  ru.alekdlc.client.utils.math.Mathf
 *  ru.alekdlc.client.utils.time.TimerUtil
 */
package ru.alekdlc.client.managers.module.impl.combat.rotation;

import java.util.concurrent.ThreadLocalRandom;
import lombok.Generated;
import net.minecraft.block.Block;
import net.minecraft.block.SlabBlock;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.fluid.FluidState;
import net.minecraft.tags.FluidTags;
import net.minecraft.tags.ITag;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.vector.Vector3d;
import net.minecraft.world.IBlockReader;
import ru.alekdlc.client.api.interfaces.IMinecraft;
import ru.alekdlc.client.managers.component.impl.rotation.Rotation;
import ru.alekdlc.client.managers.component.impl.rotation.RotationComponent;
import ru.alekdlc.client.managers.module.impl.combat.rotation.SpookyTimeRotation;
import ru.alekdlc.client.utils.math.Mathf;
import ru.alekdlc.client.utils.time.TimerUtil;

/*
 * Exception performing whole class analysis ignored.
 */
public final class SpookyTimeRotation
implements IMinecraft {
    static float tick = 0.0f;
    private static int currentPointIndex = 0;
    private static int previousPointIndex = 0;
    private final static TimerUtil switchTimer = new TimerUtil();
    private final static TimerUtil transitionTimer = new TimerUtil();
    private static long nextSwitchDelay = ThreadLocalRandom.current().nextLong(1000L, 1600L);
    private static boolean isTransitioning = false;
    private final static long TRANSITION_DURATION = 1200L;

    private static boolean isPlayerInWater() {
        if (SpookyTimeRotation.mc.player == null || Minecraft.world == null) {
            return false;
        }
        BlockPos blockPos = new BlockPos(SpookyTimeRotation.mc.player.getPosX(), SpookyTimeRotation.mc.player.getPosYEye(), SpookyTimeRotation.mc.player.getPosZ());
        FluidState fluidState = Minecraft.world.getFluidState(blockPos);
        if (fluidState.isTagged((ITag)FluidTags.WATER)) {
            return true;
        }
        return SpookyTimeRotation.mc.player.isInWater();
    }

    private static boolean isInWaterContext() {
        if (SpookyTimeRotation.mc.player == null) {
            return false;
        }
        return SpookyTimeRotation.mc.player.isInWater() || SpookyTimeRotation.mc.player.isInLava();
    }

    private static Vector3d getBodyPoint(LivingEntity livingEntity, BodyPoint bodyPoint) {
        double d = livingEntity.getPosX();
        double d2 = livingEntity.getPosY() + (double)(livingEntity.getHeight() * bodyPoint.getHeightMultiplier());
        double d3 = livingEntity.getPosZ();
        return new Vector3d(d, d2, d3);
    }

    private static void switchToNextPoint() {
        previousPointIndex = currentPointIndex;
        currentPointIndex = (currentPointIndex + 1) % BodyPoint.values().length;
        nextSwitchDelay = ThreadLocalRandom.current().nextLong(800L, 1400L);
        switchTimer.reset();
        transitionTimer.reset();
        isTransitioning = true;
    }

    public static void rotation(LivingEntity livingEntity, boolean bl, float f, boolean bl2) {
        float f2;
        float f3;
        float f4;
        float f5;
        Vector3d vector3d;
        float f6;
        float f7;
        Vector3d vector3d2;
        BodyPoint currentBodyPoint;
        float f8;
        if (livingEntity == null || SpookyTimeRotation.mc.player == null) {
            return;
        }
        double d = SpookyTimeRotation.mc.player.getDistance((Entity)livingEntity);
        boolean bl3 = SpookyTimeRotation.isInWaterContext();
        float f9 = 1.0f;
        double d2 = Math.hypot(SpookyTimeRotation.mc.player.motion.x, SpookyTimeRotation.mc.player.motion.z);
        float f10 = 1.0f;
        if (d2 > 0.2) {
            double d3 = bl3 ? 0.15 : 0.2;
            double d4 = bl3 ? 1.0 : 1.5;
            f10 = MathHelper.clamp((float)((float)(1.0 - (d2 - d3) * d4)), (float)(bl3 ? 0.55f : 0.4f), 1.0f);
        }
        float f11 = 1.0f;
        if (Minecraft.world != null) {
            BlockPos blockPos = new BlockPos(SpookyTimeRotation.mc.player.getPosX(), SpookyTimeRotation.mc.player.getPosY() - 0.1, SpookyTimeRotation.mc.player.getPosZ());
            Block block = Minecraft.world.getBlockState(blockPos).getBlock();
            if (block instanceof SlabBlock) {
                f11 = 0.5f;
            } else {
                try {
                    double d5 = Minecraft.world.getBlockState((BlockPos)blockPos).getCollisionShape((IBlockReader)Minecraft.world, (BlockPos)blockPos, (ISelectionContext)ISelectionContext.dummy()).getBoundingBox().maxY;
                    if (d5 < 1.0 && d5 > 0.0) {
                        f11 = MathHelper.clamp((float)((float)(0.3 + d5 * 0.4)), 0.3f, 0.7f);
                    }
                }
                catch (Exception exception) {
                    f11 = 1.0f;
                }
            }
        }
        float f12 = f9 * f10 * f11;
        boolean bl4 = false;
        boolean bl5 = false;
        if (bl) {
            tick = 4.0f;
        }
        if (tick > 0.0f) {
            bl4 = true;
            tick -= 1.0f;
        }
        float f82 = SpookyTimeRotation.mc.player.getCooledAttackStrength(1.5f);
        bl5 = f8 >= 0.85f && f82 < 1.0f;
        boolean bl6 = bl5;
        if (bl3) {
            bl5 = f82 >= 0.8f && f82 < 1.0f;
        }
        float f13 = 1.0f;
        if (bl4 || bl5) {
            f13 = bl3 ? 0.2f : 0.3f;
        }
        float f14 = f12 * f13;
        float f15 = f12 * (!bl4 && !bl5 ? 1.0f : (bl3 ? 0.3f : 0.4f));
        if (switchTimer.isReached(nextSwitchDelay)) {
            SpookyTimeRotation.switchToNextPoint();
        }
        if (nextSwitchDelay < 1000L) {
            nextSwitchDelay = ThreadLocalRandom.current().nextLong(1000L, 1600L);
        }
        BodyPoint[] bodyPointArray = BodyPoint.values();
        if (isTransitioning && transitionTimer.getTime() < 1200L) {
            bodyPoint = bodyPointArray[previousPointIndex];
            currentBodyPoint = bodyPointArray[currentPointIndex];
            vector3d2 = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)bodyPoint);
            Vector3d transitionTarget = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)currentBodyPoint);
            f7 = MathHelper.clamp((float)((float)transitionTimer.getTime() / 1200.0f), 0.0f, 1.0f);
            f6 = f7 < 0.5f ? 16.0f * f7 * f7 * f7 * f7 * f7 : 1.0f - (float)Math.pow(-2.0f * f7 + 2.0f, 5.0) / 2.0f;
            vector3d = new Vector3d(MathHelper.lerp((double)f6, (double)vector3d2.x, (double)transitionTarget.x), MathHelper.lerp((double)f6, (double)vector3d2.y, (double)transitionTarget.y), MathHelper.lerp((double)f6, (double)vector3d2.z, (double)transitionTarget.z));
        } else {
            if (isTransitioning) {
                isTransitioning = false;
            }
            bodyPoint = bodyPointArray[currentPointIndex];
            vector3d = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)bodyPoint);
        }
        Vector3d eyePosition = SpookyTimeRotation.mc.player.getEyePosition(mc.getRenderPartialTicks());
        vector3d2 = vector3d;
        if (bl4 || bl5) {
            currentBodyPoint = bl3 ? BodyPoint.CHEST : (d > 2.5 ? BodyPoint.CHEST : BodyPoint.HEAD);
            vector3d2 = SpookyTimeRotation.getBodyPoint((LivingEntity)livingEntity, (BodyPoint)currentBodyPoint);
        }
        double d6 = System.currentTimeMillis();
        f7 = (float)Math.cos(d6 / 85.0);
        f6 = (float)Math.sin(d6 / 95.0);
        float f16 = (0.036f * f7 + 0.032f * f6) * f15;
        float f17 = (float)Math.cos(d6 / 60.0);
        float f18 = (float)Math.sin(d6 / 55.0);
        float f19 = (0.044f * f17 + 0.04f * f18) * f15;
        float f20 = (float)Math.cos(d6 / 150.0);
        float f21 = (float)Math.sin(d6 / 180.0);
        float f22 = (0.13f * f20 + 0.11f * f21) * f15;
        float f23 = (float)Math.cos(d6 / 200.0);
        float f24 = (float)Math.sin(d6 / 240.0);
        float f25 = (0.13f * f23 + 0.11f * f24) * f15;
        float f26 = (float)Math.cos(d6 / 220.0);
        float f27 = (float)Math.sin(d6 / 230.0);
        float f28 = (0.16f * f26 + 0.13f * f27) * f15;
        Vector3d vector3d3 = vector3d2.add((double)((f25 + f19) * f15), (double)(f16 * 0.15f * f15), (double)(f28 * f15)).subtract(eyePosition).normalize();
        float f29 = (float)Math.toDegrees(Math.atan2(-vector3d3.x, vector3d3.z));
        float f30 = (float)MathHelper.clamp((double)(-Math.toDegrees(Math.atan2(vector3d3.y, Math.hypot(vector3d3.x, vector3d3.z)))), -90.0, 90.0);
        double d7 = 50.0 + Math.random() * 60.0;
        double d8 = 55.0 + Math.random() * 65.0;
        double d9 = 60.0 + Math.random() * 70.0;
        double d10 = 65.0 + Math.random() * 75.0;
        double d11 = 58.0 + Math.random() * 68.0;
        double d12 = 62.0 + Math.random() * 72.0;
        float f31 = (float)Math.cos(d6 / d7);
        float f32 = (float)Math.sin(d6 / d8);
        float f33 = (float)Math.cos(d6 / d9);
        float f34 = (float)Math.sin(d6 / d10);
        float f35 = (float)Math.cos(d6 / d11);
        float f36 = (float)Math.sin(d6 / d12);
        float f37 = 0.0f;
        if (bl4) {
            f37 = ThreadLocalRandom.current().nextLong(-1L, 1L);
        }
        float f38 = bl3 ? 0.65f : 1.0f;
        float f39 = (float)(Math.random() * 2.8) * f14 * f38;
        float f40 = (float)(Math.random() * 3.0) * f14 * f38;
        float f41 = (float)(Math.random() * 2.9) * f14 * f38;
        float f42 = (float)(Math.random() * 2.6) * f14 * f38;
        float f43 = (float)ThreadLocalRandom.current().nextDouble(-1.6, 1.6) * f14 * f38;
        float f44 = (float)(Math.random() * 4.4) * f14;
        float f45 = Mathf.smoothRandom(3.6f, 4.8f, 1.0f) * f14;
        float f46 = (float)(Math.random() * 4.6) * f14;
        float f47 = (float)(Math.random() * 4.5) * f14;
        float f48 = (float)(Math.random() * 4.3) * f14;
        float f49 = (float)(Math.random() * 4.4) * f14;
        float f50 = (float)(Math.random() * 4.8) * f14;
        float f51 = (float)(Math.random() * 4.2) * f14;
        float f52 = (float)ThreadLocalRandom.current().nextDouble(-2.8, 2.8) * f14;
        float f53 = (float)(Math.random() * 4.3) * f14;
        float f54 = (float)ThreadLocalRandom.current().nextDouble(-2.6, 2.6) * f14;
        float f55 = (f39 * f32 + f31 * f40 + f33 * f41 + f34 * f42 + f35 * f43 + f36 * (float)(Math.random() * 2.2) + (float)(Math.random() * 2.1) + (float)ThreadLocalRandom.current().nextDouble(-1.4, 1.4)) * f14 * 0.9f;
        float f56 = (f44 * f31 + f32 * f45 + f33 * f46 + f34 * f47 + f48 * f35 + f49 * f36 + f50 * f31 + f51 * f32 + f52 * f33 + f53 * f34 + f54 * f35 + (float)(Math.random() * 4.8) - 2.4f + (float)ThreadLocalRandom.current().nextDouble(-2.6, 2.6) + (float)ThreadLocalRandom.current().nextDouble(-1.8, 1.8)) * f14 * 1.2f;
        if (!bl4 && !bl5) {
            f5 = Mathf.randomValue(1.8f, 2.8f);
            f4 = Mathf.randomValue(18.0f, 26.0f);
        } else {
            f5 = bl3 ? Mathf.randomValue(1.0f, 1.8f) : Mathf.randomValue(1.2f, 2.0f);
            f4 = bl3 ? Mathf.randomValue(14.0f, 20.0f) : Mathf.randomValue(12.0f, 18.0f);
        }
        float f57 = MathHelper.clamp((float)(f30 + f56 + f37), -90.0f, 90.0f);
        Rotation rotation = new Rotation(f29 + f55 + f37, f57);
        if (!bl4 && !bl5) {
            f3 = Mathf.randomValue(20.0f, 28.0f);
            f2 = Mathf.randomValue(11.0f, 16.0f);
        } else {
            f3 = bl3 ? Mathf.randomValue(18.0f, 24.0f) : Mathf.randomValue(16.0f, 22.0f);
            f2 = bl3 ? Mathf.randomValue(9.0f, 14.0f) : Mathf.randomValue(8.0f, 13.0f);
        }
        RotationComponent.update((Rotation)rotation, (float)f4, (float)f5, (float)f3, (float)f2, 0, 15, (boolean)false);
    }

    @Generated
    private SpookyTimeRotation() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }
}
1774502728220.png


так это даже не их киллаура а перплексити...
 
Назад
Сверху Снизу