Like csgo cheating fakebody
Show how you turn your head
have fun
Rotations.kt:
package net.ccbluex.liquidbounce.features.module.modules.render
import net.ccbluex.liquidbounce.LiquidBounce
import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.event.PacketEvent
import net.ccbluex.liquidbounce.event.Render3DEvent
import net.ccbluex.liquidbounce.features.module.Module
import net.ccbluex.liquidbounce.features.module.ModuleCategory
import net.ccbluex.liquidbounce.features.module.ModuleInfo
import net.ccbluex.liquidbounce.features.module.modules.combat.BowAimbot
import net.ccbluex.liquidbounce.features.module.modules.combat.KillAura
import net.ccbluex.liquidbounce.features.module.modules.world.ChestAura
import net.ccbluex.liquidbounce.features.module.modules.world.Fucker
import net.ccbluex.liquidbounce.features.module.modules.world.Nuker
import net.ccbluex.liquidbounce.features.module.modules.world.Scaffold
import net.ccbluex.liquidbounce.utils.MovementUtils
import net.ccbluex.liquidbounce.utils.RotationUtils
import net.ccbluex.liquidbounce.utils.render.ColorUtils
import net.ccbluex.liquidbounce.value.BoolValue
import net.ccbluex.liquidbounce.value.FloatValue
import net.ccbluex.liquidbounce.value.ListValue
import net.minecraft.network.play.client.C03PacketPlayer
import java.awt.Color
@ModuleInfo(name = "Rotations", description = "Allows you to see server-sided head and body rotations.", category = ModuleCategory.RENDER, name2 = "Rotations",name3 = "摇头动画")
class Rotations : Module() {
var mode = ListValue("Mode", arrayOf("Head","Body","FakeBody"),"Head")
var R = FloatValue("R", 255f, 0f, 255f)
var G = FloatValue("G", 255f, 0f, 255f)
var B = FloatValue("B", 255f, 0f, 255f)
var Alpha = FloatValue("Alpha", 100f, 0f, 255f)
public var playerYaw: Float? = null
@EventTarget
fun onRender3D(event: Render3DEvent) {
if (RotationUtils.serverRotation != null && mode.get().equals("Head"))
mc.thePlayer.rotationYawHead = RotationUtils.serverRotation.yaw
}
@EventTarget
fun onPacket(event: PacketEvent) {
if (!mode.get().equals("Body") || !shouldRotate() || mc.thePlayer == null)
return
val packet = event.packet
if (packet is C03PacketPlayer.C06PacketPlayerPosLook || packet is C03PacketPlayer.C05PacketPlayerLook) {
playerYaw = (packet as C03PacketPlayer).yaw
mc.thePlayer.renderYawOffset = packet.getYaw()
mc.thePlayer.rotationYawHead = packet.getYaw()
} else {
if (playerYaw != null)
mc.thePlayer.renderYawOffset = this.playerYaw!!
mc.thePlayer.rotationYawHead = mc.thePlayer.renderYawOffset
}
}
private fun getState(module: Class<*>) = LiquidBounce.moduleManager[module]!!.state
public fun shouldRotate(): Boolean {
val killAura = LiquidBounce.moduleManager.getModule(KillAura::class.java) as KillAura
return (getState(Scaffold::class.java) && MovementUtils.isMoving()) ||
(getState(KillAura::class.java) && killAura.target != null)
}
override val tag: String?
get() = (mode.get())
}
Please copy this code into mixinRendererLivingEntity.java
@Overwrite
public<T extends EntityLivingBase> void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks)
{
GlStateManager.pushMatrix();
GlStateManager.disableCull();
this.mainModel.swingProgress = this.getSwingProgress(entity, partialTicks);
this.mainModel.isRiding = entity.isRiding();
this.mainModel.isChild = entity.isChild();
try
{
float f = this.interpolateRotation(entity.prevRenderYawOffset, entity.renderYawOffset, partialTicks);
float f1 = this.interpolateRotation(entity.prevRotationYawHead, entity.rotationYawHead, partialTicks);
float f2 = f1 - f;
if (entity.isRiding() && entity.ridingEntity instanceof EntityLivingBase)
{
EntityLivingBase entitylivingbase = (EntityLivingBase)entity.ridingEntity;
f = this.interpolateRotation(entitylivingbase.prevRenderYawOffset, entitylivingbase.renderYawOffset, partialTicks);
f2 = f1 - f;
float f3 = MathHelper.wrapAngleTo180_float(f2);
if (f3 < -85.0F)
{
f3 = -85.0F;
}
if (f3 >= 85.0F)
{
f3 = 85.0F;
}
f = f1 - f3;
if (f3 * f3 > 2500.0F)
{
f += f3 * 0.2F;
}
}
float f7 = entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * partialTicks;
this.renderLivingAt(entity, x, y, z);
float f8 = this.handleRotationFloat(entity, partialTicks);
this.rotateCorpse(entity, f8, f, partialTicks);
GlStateManager.enableRescaleNormal();
GlStateManager.scale(-1.0F, -1.0F, 1.0F);
this.preRenderCallback(entity, partialTicks);
float f4 = 0.0625F;
GlStateManager.translate(0.0F, -1.5078125F, 0.0F);
float f5 = entity.prevLimbSwingAmount + (entity.limbSwingAmount - entity.prevLimbSwingAmount) * partialTicks;
float f6 = entity.limbSwing - entity.limbSwingAmount * (1.0F - partialTicks);
if (entity.isChild())
{
f6 *= 3.0F;
}
if (f5 > 1.0F)
{
f5 = 1.0F;
}
GlStateManager.enableAlpha();
this.mainModel.setLivingAnimations(entity, f6, f5, partialTicks);
this.mainModel.setRotationAngles(f6, f5, f8, f2, f7, 0.0625F, entity);
if (this.renderOutlines)
{
boolean flag1 = this.setScoreTeamColor(entity);
this.renderModel(entity, f6, f5, f8, f2, f7, 0.0625F);
if (flag1)
{
this.unsetScoreTeamColor();
}
}
else
{
boolean flag = this.setDoRenderBrightness(entity, partialTicks);
this.renderModel(entity, f6, f5, f8, f2, f7, 0.0625F);
if (flag)
{
this.unsetBrightness();
}
GlStateManager.depthMask(true);
if (!(entity instanceof EntityPlayer) || !((EntityPlayer)entity).isSpectator())
{
this.renderLayers(entity, f6, f5, partialTicks, f8, f2, f7, 0.0625F);
}
}
Rotations rotations = (Rotations)LiquidBounce.moduleManager.getModule(Rotations.class);
float renderpitch = (Minecraft.getMinecraft().gameSettings.thirdPersonView != 0 && rotations.getState() && rotations.getMode().get().equals("FakeBody") && entity == Minecraft.getMinecraft().thePlayer) ? (entity.prevRotationPitch + (((RotationUtils.serverRotation.getPitch() != 0.0f) ? RotationUtils.serverRotation.getPitch() : entity.rotationPitch) - entity.prevRotationPitch)) : (entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * partialTicks);
float renderyaw = (Minecraft.getMinecraft().gameSettings.thirdPersonView != 0 && rotations.getState() && rotations.getMode().get().equals("FakeBody") && entity == Minecraft.getMinecraft().thePlayer) ? (entity.prevRotationYaw + (((RotationUtils.serverRotation.getYaw() != 0.0f) ? RotationUtils.serverRotation.getYaw() : entity.rotationYaw) - entity.prevRotationYaw)) : (entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * partialTicks);
if(rotations.getState() && rotations.getMode().get().equals("FakeBody")&&entity.equals(Minecraft.getMinecraft().thePlayer) && rotations.shouldRotate()) {
//draw FakeBody
GL11.glPushMatrix();
GL11.glPushAttrib(1048575);
GL11.glDisable(2929);
GL11.glDisable(3553);
GL11.glDisable(3553);
GL11.glEnable(3042);
GL11.glBlendFunc(770,771);
GL11.glDisable(2896);
GL11.glPolygonMode(1032,6914);
GL11.glColor4f(rotations.getR().get()/255,rotations.getG().get()/255,rotations.getB().get(),rotations.getAlpha().get()/255);
GL11.glRotatef(renderyaw - f,0,0.001f,0);
this.mainModel.render(Minecraft.getMinecraft().thePlayer,f6, f5, renderpitch, renderyaw - f, renderpitch,0.0625F);
GL11.glEnable(2896);
GL11.glDisable(3042);
GL11.glEnable(3553);
GL11.glEnable(2929);
GL11.glColor3d(1,1,1);
GL11.glPopAttrib();
GL11.glPopMatrix();
}
GlStateManager.disableRescaleNormal();
}
catch (Exception exception)
{
logger.error((String)"Couldn\'t render entity", (Throwable)exception);
}
GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit);
GlStateManager.enableTexture2D();
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
GlStateManager.enableCull();
GlStateManager.popMatrix();
if (!this.renderOutlines)
{
super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
}
@Overwrite
protected <T extends EntityLivingBase> boolean setBrightness(T entitylivingbaseIn, float partialTicks, boolean combineTextures)
{
float f = entitylivingbaseIn.getBrightness(partialTicks);
int i = this.getColorMultiplier(entitylivingbaseIn, f, partialTicks);
boolean flag = (i >> 24 & 255) > 0;
boolean flag1 = entitylivingbaseIn.hurtTime > 0 || entitylivingbaseIn.deathTime > 0;
DMGColor DC = (DMGColor)LiquidBounce.moduleManager.getModule(DMGColor.class);
if (!flag && !flag1)
{
return false;
}
else if (!flag && !combineTextures)
{
return false;
}
else
{
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
GlStateManager.enableTexture2D();
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, OpenGlHelper.GL_COMBINE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_COMBINE_RGB, GL11.GL_MODULATE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE0_RGB, OpenGlHelper.defaultTexUnit);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE1_RGB, OpenGlHelper.GL_PRIMARY_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND0_RGB, GL11.GL_SRC_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND1_RGB, GL11.GL_SRC_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_COMBINE_ALPHA, GL11.GL_REPLACE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE0_ALPHA, OpenGlHelper.defaultTexUnit);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND0_ALPHA, GL11.GL_SRC_ALPHA);
GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit);
GlStateManager.enableTexture2D();
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, OpenGlHelper.GL_COMBINE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_COMBINE_RGB, OpenGlHelper.GL_INTERPOLATE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE0_RGB, OpenGlHelper.GL_CONSTANT);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE1_RGB, OpenGlHelper.GL_PREVIOUS);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE2_RGB, OpenGlHelper.GL_CONSTANT);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND0_RGB, GL11.GL_SRC_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND1_RGB, GL11.GL_SRC_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND2_RGB, GL11.GL_SRC_ALPHA);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_COMBINE_ALPHA, GL11.GL_REPLACE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE0_ALPHA, OpenGlHelper.GL_PREVIOUS);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND0_ALPHA, GL11.GL_SRC_ALPHA);
this.brightnessBuffer.position(0);
if (flag1)
{
if(DC.getState()) {
this.brightnessBuffer.put(DC.R.get()/255f);
this.brightnessBuffer.put(DC.G.get()/255f);
this.brightnessBuffer.put(DC.B.get()/255f);
this.brightnessBuffer.put(DC.Alpha.get()/255f);
}else{
this.brightnessBuffer.put(1.0F);
this.brightnessBuffer.put(0.0F);
this.brightnessBuffer.put(0.0F);
this.brightnessBuffer.put(0.3F);
}
}
else
{
float f1 = (float)(i >> 24 & 255) / 255.0F;
float f2 = (float)(i >> 16 & 255) / 255.0F;
float f3 = (float)(i >> 8 & 255) / 255.0F;
float f4 = (float)(i & 255) / 255.0F;
this.brightnessBuffer.put(f2);
this.brightnessBuffer.put(f3);
this.brightnessBuffer.put(f4);
this.brightnessBuffer.put(1.0F - f1);
}
this.brightnessBuffer.flip();
GL11.glTexEnv(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_COLOR, (FloatBuffer)this.brightnessBuffer);
GlStateManager.setActiveTexture(OpenGlHelper.GL_TEXTURE2);
GlStateManager.enableTexture2D();
GlStateManager.bindTexture(field_177096_e.getGlTextureId());
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, OpenGlHelper.GL_COMBINE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_COMBINE_RGB, GL11.GL_MODULATE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE0_RGB, OpenGlHelper.GL_PREVIOUS);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE1_RGB, OpenGlHelper.lightmapTexUnit);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND0_RGB, GL11.GL_SRC_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND1_RGB, GL11.GL_SRC_COLOR);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_COMBINE_ALPHA, GL11.GL_REPLACE);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_SOURCE0_ALPHA, OpenGlHelper.GL_PREVIOUS);
GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, OpenGlHelper.GL_OPERAND0_ALPHA, GL11.GL_SRC_ALPHA);
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
return true;
}
}