Skip to content

Commit

Permalink
aa fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ov committed Oct 6, 2022
1 parent e036aec commit bb59984
Show file tree
Hide file tree
Showing 8 changed files with 311 additions and 386 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified build/libs/[1.8.9] BetterKeystrokes V-1.2-sources.jar
Binary file not shown.
Binary file modified build/libs/[1.8.9] BetterKeystrokes V-1.2.jar
Binary file not shown.
Binary file modified src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/keystrokesmod/client/main/Raven.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static void init() {

Runtime.getRuntime().addShutdownHook(new Thread(ex::shutdown));

InputStream ravenLogoInputStream = HUD.class.getResourceAsStream("/assets/keystrokes/raven.png");
InputStream ravenLogoInputStream = HUD.class.getResourceAsStream("/assets/keystrokesmod/raven.png");
BufferedImage bf;
try {
assert ravenLogoInputStream != null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@
import java.awt.Color;

import com.google.common.eventbus.Subscribe;
import com.mojang.realmsclient.dto.RealmsServer.McoServerComparator;

import keystrokesmod.client.event.impl.ForgeEvent;
import keystrokesmod.client.event.impl.MoveInputEvent;
import keystrokesmod.client.event.impl.PacketEvent;
import keystrokesmod.client.event.impl.UpdateEvent;
import keystrokesmod.client.mixin.mixins.MixinC03PacketPlayer;
import keystrokesmod.client.module.Module;
import keystrokesmod.client.module.modules.render.PlayerESP;
import keystrokesmod.client.module.modules.world.AntiBot;
import keystrokesmod.client.module.setting.impl.DoubleSliderSetting;
import keystrokesmod.client.module.setting.impl.SliderSetting;
import keystrokesmod.client.utils.Utils;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.Packet;
import net.minecraftforge.client.event.RenderWorldLastEvent;

/**
Expand All @@ -37,24 +32,24 @@ public LegitAura2() {
this.registerSetting(rotationDistance = new SliderSetting("Rotation", 3.5, 3, 6, 0.05));
}

@Subscribe
@Subscribe
public void onUpdate(UpdateEvent e) {
if(e.isPre()) {
target = (EntityPlayer) Utils.Player.getClosestPlayer((float) rotationDistance.getInput());
if(target != null && !AntiBot.bot(target)) {
float[] i = Utils.Player.getTargetRotations(target);
if((target != null) && !AntiBot.bot(target)) {
float[] i = Utils.Player.getTargetRotations(target, 0);
yaw = i[0];
pitch = i[1];
mc.thePlayer.setRotationYawHead(yaw);
e.setYaw(yaw);
e.setPitch(pitch);
}
}
}
}

@Subscribe
public void renderWorldLast(ForgeEvent fe) {
if(fe.getEvent() instanceof RenderWorldLastEvent && target != null && !PlayerESP.t2.isToggled()) {
if((fe.getEvent() instanceof RenderWorldLastEvent) && (target != null) && !PlayerESP.t2.isToggled()) {
RenderWorldLastEvent e = (RenderWorldLastEvent) fe.getEvent();
int red = (int) (((20 - target.getHealth()) * 13) > 255 ? 255 : (20 - target.getHealth()) * 13);
int green = 255 - red;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package keystrokesmod.client.module.modules.movement;

import java.util.Iterator;

import keystrokesmod.client.module.Module;
import keystrokesmod.client.module.modules.world.AntiBot;
import keystrokesmod.client.module.setting.impl.DescriptionSetting;
Expand All @@ -11,8 +13,6 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.Vec3;

import java.util.Iterator;

public class SlyPort extends Module {
public static DescriptionSetting f;
public static SliderSetting r;
Expand All @@ -30,27 +30,25 @@ public SlyPort() {
this.registerSetting(d = new TickSetting("Players only", true));
}

public void onEnable() {
@Override
public void onEnable() {
Entity en = this.ge();
if (en != null) {
this.tp(en);
}
if (en != null)
this.tp(en);

this.disable();
}

private void tp(Entity en) {
if (b.isToggled()) {
mc.thePlayer.playSound("mob.endermen.portal", 1.0F, 1.0F);
}
if (b.isToggled())
mc.thePlayer.playSound("mob.endermen.portal", 1.0F, 1.0F);

Vec3 vec = en.getLookVec();
double x = en.posX - vec.xCoord * 2.5D;
double z = en.posZ - vec.zCoord * 2.5D;
double x = en.posX - (vec.xCoord * 2.5D);
double z = en.posZ - (vec.zCoord * 2.5D);
mc.thePlayer.setPosition(x, mc.thePlayer.posY, z);
if (e.isToggled()) {
Utils.Player.aim(en, 0.0F, false);
}
if (e.isToggled())
Utils.Player.aim(en, 0.0F);

}

Expand All @@ -62,19 +60,18 @@ private Entity ge() {

while (true) {
Entity ent;
do {
do {
do {
do {
if (!var6.hasNext()) {
return en;
}
do
do
do
do {
if (!var6.hasNext())
return en;

ent = (Entity) var6.next();
} while (ent == mc.thePlayer);
} while (!(ent instanceof EntityLivingBase));
} while (((EntityLivingBase) ent).deathTime != 0);
} while (d.isToggled() && !(ent instanceof EntityPlayer));
while (!(ent instanceof EntityLivingBase));
while (((EntityLivingBase) ent).deathTime != 0);
while (d.isToggled() && !(ent instanceof EntityPlayer));

if (!AntiBot.bot(ent)) {
double d = mc.thePlayer.getDistanceSqToEntity(ent);
Expand Down
Loading

0 comments on commit bb59984

Please sign in to comment.