Киллка:
case "Спукитайм" -> {
float yaw;
float pitch;
if (attack && selected != target && options.getValueByName("Ускорять ротацию при атаке").get()) {
yaw = rotateVector.x + yawDelta;
pitch = clamp(rotateVector.y + pitchDelta, -89.0F, 89.0F);
} else {
float yawSpeed = Math.min(Math.max(Math.abs(yawDelta), 1.0f), rotationYawSpeed * 2.0f);
float pitchSpeed = Math.min(Math.max(Math.abs(pitchDelta), 1.0f), rotationPitchSpeed * 2.0f);
yaw = rotateVector.x + (yawDelta > 0 ? yawSpeed : -yawSpeed);
pitch = clamp(rotateVector.y + (pitchDelta > 0 ? pitchSpeed : -pitchSpeed), -89.0F, 89.0F);
}
float time = mc.player.ticksExisted + mc.getRenderPartialTicks();
float tremorYaw = AdvancedRandomUtil.LegitFloat(-0.4f, 0.4f, AdvancedRandomUtil.PatternMode.INERTIA_SMOOTH);
float tremorPitch = AdvancedRandomUtil.LegitFloat(-0.3f, 0.3f, AdvancedRandomUtil.PatternMode.INERTIA_SMOOTH);
float driftYaw = AdvancedRandomUtil.LegitFloat(-0.4f, 0.4f, AdvancedRandomUtil.PatternMode.HUMAN_TREMOR);
float driftPitch = AdvancedRandomUtil.LegitFloat(-0.3f, 0.3f, AdvancedRandomUtil.PatternMode.HUMAN_TREMOR);
yaw += tremorYaw + driftYaw;
pitch += tremorPitch + driftPitch;
float gcd = SensUtils.getGCDValue();
float gcdRandomizer = 1.0f + AdvancedRandomUtil.LegitFloat(-0.005f, 0.005f, AdvancedRandomUtil.PatternMode.MICRO_CORRECTIONS);
yaw -= (yaw - rotateVector.x) % (gcd * gcdRandomizer);
pitch -= (pitch - rotateVector.y) % (gcd * gcdRandomizer);
float maxYawChange = 40.0f;
float maxPitchChange = 35.0f;
yaw = rotateVector.x + clamp(yaw - rotateVector.x, -maxYawChange, maxYawChange);
pitch = clamp(rotateVector.y + clamp(pitch - rotateVector.y, -maxPitchChange, maxPitchChange), -89.0F, 89.0F);
rotateVector = new Vector2f(yaw, pitch);
lastYaw = yaw;
lastPitch = pitch;
if (options.getValueByName("Коррекция движения").get()) {
mc.player.rotationYawOffset = yaw
+ AdvancedRandomUtil.LegitFloat(-0.3f, 0.3f, AdvancedRandomUtil.PatternMode.MICRO_CORRECTIONS);
}
}
Да я писал через ChatLgbt но не бейте палками первая работа