TornadoClientDev / Storm-Anticheat

0 stars 0 forks source link

NoVelocity, Strafe, Alldirections Sprint, Step (1 block), NoSlowDown, Timer, Tower, NoSwing, InvCleaner, FastUse, Scaffold #41

Open Croc0008 opened 6 years ago

Croc0008 commented 6 years ago

I don't want to release some codes, because they are for other ACs too.

Velocity: private code

Strafe:
private void doStrafe1() { if (!Minecraft.thePlayer.onGround) { if (!Minecraft.thePlayer.isOnLadder()) { if (!Minecraft.thePlayer.isInWater()) { if (!Minecraft.thePlayer.isInWeb) { if (!Minecraft.thePlayer.isSneaking()) { float v1 = 0.0f; float v2 = 0.0f; final double v3 = 0.2; final float v4 = MathHelper.sin(Minecraft.thePlayer.rotationYaw 3.1415927f / 180.0f); final float v5 = MathHelper.cos(Minecraft.thePlayer.rotationYaw 3.1415927f / 180.0f); if (mc.gameSettings.keyBindForward.pressed) { ++v1; } if (mc.gameSettings.keyBindBack.pressed) { --v1; } if (mc.gameSettings.keyBindLeft.pressed) { ++v2; } if (mc.gameSettings.keyBindRight.pressed) { --v2; } final double v6 = (v2 v5 - v1 v4) v3; final double v7 = (v1 v5 + v2 v4) v3; Minecraft.thePlayer.motionX = v6; Minecraft.thePlayer.motionZ = v7; } } } } } }

Alldirections Sprint: I hope you don't need code

Step: if((mc.thePlayer.isCollidedHorizontally) && (shouldStep()) && ((this.mc.gameSettings.keyBindForward.pressed) || (this.mc.gameSettings.keyBindBack.pressed) || (this.mc.gameSettings.keyBindRight.pressed) || (this.mc.gameSettings.keyBindLeft.pressed)) && (mc.thePlayer.onGround) && (!this.mc.thePlayer.isOnLadder()) && (!mc.thePlayer.isSneaking())) { if(this.time1.isDelayComplete((float)delay.getValDouble())) { mc.thePlayer.stepHeight = height.getValDouble(); mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42D, mc.thePlayer.posZ, mc.thePlayer.onGround)); mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.753D, mc.thePlayer.posZ, mc.thePlayer.onGround)); time1.reset(); } } else { mc.timer.timerSpeed = 1F; mc.thePlayer.stepHeight = 0.5F; }

NoSlowDown: don't need code, the AC doesn't flag you when you stop walking a few ticks before the food is eated.

Timer: don't need code, only a few blocks

Tower: Idk, I think you don't have a check for tower? xd

NoSwing: don't have a check too?

InvCleaner: -

FastUse: if (((!this.regen) || (Minecraft.thePlayer.onGround)) && (Minecraft.thePlayer.getItemInUseDuration() == 15) && (!(Minecraft.thePlayer.getItemInUse().getItem() instanceof ItemBow))) { for (int i = 0; i < (this.regen ? 500 : 25); i++) { Minecraft.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer(true)); }

Scaffold: private code, it bypass when you enable sneak mode^^

Croc0008 commented 6 years ago

and noweb: if(webBypassAAC.getValBoolean()) { if(mc.thePlayer.isInWeb) { Minecraft.thePlayer.motionY = 0.0D; Minecraft.thePlayer.setPosition(Minecraft.thePlayer.posX, Minecraft.thePlayer.posY + 1.0E-9D, Minecraft.thePlayer.posZ); if ((Minecraft.thePlayer.ticksExisted % 3 == 0) && ((Minecraft.theWorld.getBlockState(new BlockPos(Minecraft.thePlayer.posX, Minecraft.thePlayer.posY - 0.2D, Minecraft.thePlayer.posZ)).getBlock() instanceof BlockAir))) { Minecraft.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C06PacketPlayerPosLook(Minecraft.thePlayer.posX, Minecraft.thePlayer.posY + 1.0E-9D, Minecraft.thePlayer.posZ, Minecraft.thePlayer.rotationYaw, Minecraft.thePlayer.rotationPitch, true)); } setSpeed(0.45); }

public static void setSpeed(double speed) { final MovementInput movementInput = mc.thePlayer.movementInput; float forward = movementInput.moveForward; float strafe = movementInput.moveStrafe; float yaw = Minecraft.getMinecraft().thePlayer.rotationYaw; if (forward == 0.0f && strafe == 0.0f) { mc.thePlayer.motionX = 0.0; mc.thePlayer.motionZ = 0.0; } else if (forward != 0.0f) { if (strafe >= 1.0f) { yaw += ((forward > 0.0f) ? -45 : 45); strafe = 0.0f; } else if (strafe <= -1.0f) { yaw += ((forward > 0.0f) ? 45 : -45); strafe = 0.0f; } if (forward > 0.0f) { forward = 1.0f; } else if (forward < 0.0f) { forward = -1.0f; } } final double mx = Math.cos(Math.toRadians(yaw + 90.0f)); final double mz = Math.sin(Math.toRadians(yaw + 90.0f)); final double motionX = forward speed mx + strafe speed mz; final double motionZ = forward speed mz - strafe speed mx; mc.thePlayer.motionX = forward speed mx + strafe speed mz; mc.thePlayer.motionZ = forward speed mz - strafe speed mx;
}

TornadoClientDev commented 6 years ago

Timer should be patched now