updated scaffold rotations, new nofall check, edited norotate, added new unblink check to killaura
This commit is contained in:
parent
2cc9f2b4ae
commit
1b4640aee4
|
|
@ -414,8 +414,8 @@ public class KillAura extends Module {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Reflection.setItemInUse(blockingClient = true);
|
Reflection.setItemInUse(blockingClient = true);
|
||||||
//sendBlockPacket();
|
sendBlockPacket();
|
||||||
// cancel
|
// cancel
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -470,6 +470,10 @@ public class KillAura extends Module {
|
||||||
Reflection.setItemInUse(blockingClient = false);
|
Reflection.setItemInUse(blockingClient = false);
|
||||||
sendUnBlock = true;
|
sendUnBlock = true;
|
||||||
}
|
}
|
||||||
|
if (blinking.get() || lag) {
|
||||||
|
resetBlinkState(true);
|
||||||
|
//Utils.print("2");
|
||||||
|
}
|
||||||
partialTicks = 0;
|
partialTicks = 0;
|
||||||
interactTicks = 0;
|
interactTicks = 0;
|
||||||
handleBlocking(false);
|
handleBlocking(false);
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ public class NoFall extends Module {
|
||||||
|
|
||||||
private double initialY;
|
private double initialY;
|
||||||
private double dynamic;
|
private double dynamic;
|
||||||
|
private boolean isFalling;
|
||||||
private String edging = new String("");
|
private String edging = new String("");
|
||||||
|
|
||||||
public NoFall() {
|
public NoFall() {
|
||||||
|
|
@ -45,8 +46,14 @@ public class NoFall extends Module {
|
||||||
if (reset()) {
|
if (reset()) {
|
||||||
Utils.resetTimer();
|
Utils.resetTimer();
|
||||||
initialY = mc.thePlayer.posY;
|
initialY = mc.thePlayer.posY;
|
||||||
|
isFalling = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (((double) mc.thePlayer.fallDistance >= minFallDistance.getInput())) {
|
||||||
|
isFalling = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
double predictedY = mc.thePlayer.posY + mc.thePlayer.motionY;
|
double predictedY = mc.thePlayer.posY + mc.thePlayer.motionY;
|
||||||
double distanceFallen = initialY - predictedY;
|
double distanceFallen = initialY - predictedY;
|
||||||
edging = "";
|
edging = "";
|
||||||
|
|
@ -62,7 +69,7 @@ public class NoFall extends Module {
|
||||||
if (mc.thePlayer.motionY < -2.4) {
|
if (mc.thePlayer.motionY < -2.4) {
|
||||||
dynamic = 4.5;
|
dynamic = 4.5;
|
||||||
}
|
}
|
||||||
if (((double) mc.thePlayer.fallDistance >= 0.5) || mode.getInput() == 2) {
|
if (isFalling || mode.getInput() == 2) {
|
||||||
switch ((int) mode.getInput()) {
|
switch ((int) mode.getInput()) {
|
||||||
case 0:
|
case 0:
|
||||||
e.setOnGround(true);
|
e.setOnGround(true);
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public class NoRotate extends Module {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onSendPacket(SendPacketEvent e) {
|
public void onSendPacket(SendPacketEvent e) {
|
||||||
if (s08PacketData != null && mc.thePlayer != null && e.getPacket() instanceof C03PacketPlayer.C06PacketPlayerPosLook) {
|
if (s08PacketData != null && mc.thePlayer != null && e.getPacket() instanceof C03PacketPlayer.C06PacketPlayerPosLook) {
|
||||||
if (Utils.timeBetween(mc.thePlayer.ticksExisted, receivedTick) >= 1) {
|
if (Utils.timeBetween(mc.thePlayer.ticksExisted, receivedTick) >= 3) {
|
||||||
s08PacketData = null;
|
s08PacketData = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,8 @@ public class Scaffold extends Module {
|
||||||
private int blockSlot = -1;
|
private int blockSlot = -1;
|
||||||
private int inAirTicks;
|
private int inAirTicks;
|
||||||
private boolean modifyPitch;
|
private boolean modifyPitch;
|
||||||
|
private boolean flipRotation;
|
||||||
|
private long lastSwap;
|
||||||
|
|
||||||
private boolean floatJumped;
|
private boolean floatJumped;
|
||||||
private boolean floatStarted;
|
private boolean floatStarted;
|
||||||
|
|
@ -242,9 +244,33 @@ public class Scaffold extends Module {
|
||||||
|
|
||||||
if (rotation.getInput() == 2) {
|
if (rotation.getInput() == 2) {
|
||||||
e.setYaw(offsetRotation());
|
e.setYaw(offsetRotation());
|
||||||
if (e.getPitch() >= 50 && !ModuleManager.tower.canTower() && mc.thePlayer.motionY <= 0.42F) {
|
|
||||||
e.setPitch(e.getPitch() + 7);
|
float main = MathHelper.wrapAngleTo180_float(getMotionYaw() - yaw);
|
||||||
|
if (main >= 0) {
|
||||||
|
if (flipRotation) e.setYaw(offsetRotation() + (!Utils.scaffoldDiagonal(false) ? 230.625F : 274.625F));
|
||||||
|
Utils.print("1 " + mainOffset);
|
||||||
}
|
}
|
||||||
|
else if (main <= -0) {
|
||||||
|
if (flipRotation) e.setYaw(offsetRotation() - (!Utils.scaffoldDiagonal(false) ? 230.625F : 274.625F));
|
||||||
|
Utils.print("2 " + mainOffset);
|
||||||
|
}
|
||||||
|
if (System.currentTimeMillis() - lastSwap > 250) {
|
||||||
|
if (main >= 0 && mainOffset >= 0 && mainOffset <= 20 || main <= -0 && mainOffset <= -0 && mainOffset >= -20) {
|
||||||
|
flipRotation = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
flipRotation = false;
|
||||||
|
}
|
||||||
|
lastSwap = System.currentTimeMillis();
|
||||||
|
Utils.print("flip " + mainOffset);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*if (e.getPitch() >= 50 && !ModuleManager.tower.canTower() && mc.thePlayer.motionY <= 0.42F) {
|
||||||
|
e.setPitch(e.getPitch() + 8);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
e.setPitch(e.getPitch() + 5);
|
||||||
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rotation.getInput() == 1) {
|
if (rotation.getInput() == 1) {
|
||||||
|
|
@ -254,7 +280,7 @@ public class Scaffold extends Module {
|
||||||
if (e.getPitch() > 89) {
|
if (e.getPitch() > 89) {
|
||||||
e.setPitch(89);
|
e.setPitch(89);
|
||||||
}
|
}
|
||||||
lastYaw = e.getYaw();
|
lastYaw = MathHelper.wrapAngleTo180_float(e.getYaw());
|
||||||
lastPitch = e.getPitch();
|
lastPitch = e.getPitch();
|
||||||
if (lastPlaceTime > 0 && (System.currentTimeMillis() - lastPlaceTime) > rotationTimeout) blockRotations = null;
|
if (lastPlaceTime > 0 && (System.currentTimeMillis() - lastPlaceTime) > rotationTimeout) blockRotations = null;
|
||||||
}
|
}
|
||||||
|
|
@ -286,8 +312,7 @@ public class Scaffold extends Module {
|
||||||
float newYaw;
|
float newYaw;
|
||||||
float mainOffset;
|
float mainOffset;
|
||||||
|
|
||||||
float lastNigger = 0;
|
boolean hasEdged;
|
||||||
int difference = 0;
|
|
||||||
|
|
||||||
private float offsetRotation() {
|
private float offsetRotation() {
|
||||||
float yawBackwards = MathHelper.wrapAngleTo180_float(mc.thePlayer.rotationYaw) - hardcodedYaw();
|
float yawBackwards = MathHelper.wrapAngleTo180_float(mc.thePlayer.rotationYaw) - hardcodedYaw();
|
||||||
|
|
@ -297,34 +322,26 @@ public class Scaffold extends Module {
|
||||||
if (blockRotations != null) {
|
if (blockRotations != null) {
|
||||||
lastBlockYaw = blockRotations[0];
|
lastBlockYaw = blockRotations[0];
|
||||||
mainOffset = MathHelper.wrapAngleTo180_float(yawBackwards - lastBlockYaw);
|
mainOffset = MathHelper.wrapAngleTo180_float(yawBackwards - lastBlockYaw);
|
||||||
float minOffset = 25;
|
float minOffset = 28;
|
||||||
float minEdge = 15;
|
|
||||||
if (main >= 0) {
|
if (main >= 0) {
|
||||||
//Utils.print("Main1");
|
//Utils.print("Main1");
|
||||||
if (!Utils.scaffoldDiagonal(false)) {
|
if (mainOffset >= 0) mainOffset = 0;
|
||||||
if (mainOffset >= 0) mainOffset = 0;
|
if (mainOffset <= -minOffset) mainOffset = -minOffset;
|
||||||
if (mainOffset <= -minOffset) mainOffset = -minOffset;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (mainOffset >= 0) mainOffset = 0;
|
|
||||||
if (mainOffset <= -minEdge) mainOffset = -minEdge;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (main <= -0) {
|
if (main <= -0) {
|
||||||
//Utils.print("Main2");
|
//Utils.print("Main2");
|
||||||
if (!Utils.scaffoldDiagonal(false)) {
|
if (mainOffset <= -0) mainOffset = -0;
|
||||||
if (mainOffset <= -0) mainOffset = -0;
|
if (mainOffset >= minOffset) mainOffset = minOffset;
|
||||||
if (mainOffset >= minOffset) mainOffset = minOffset;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (mainOffset <= -0) mainOffset = -0;
|
|
||||||
if (mainOffset >= minEdge) mainOffset = minEdge;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lastBlockYaw = ((IAccessorEntityPlayerSP) mc.thePlayer).getLastReportedYaw();
|
lastBlockYaw = ((IAccessorEntityPlayerSP) mc.thePlayer).getLastReportedYaw();
|
||||||
mainOffset = 15;
|
if (main >= 0) {
|
||||||
|
mainOffset = -25;
|
||||||
|
}
|
||||||
|
else if (main <= -0) {
|
||||||
|
mainOffset = 25;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Utils.isMoving() || Utils.getHorizontalSpeed(mc.thePlayer) == 0.0D) {
|
if (!Utils.isMoving() || Utils.getHorizontalSpeed(mc.thePlayer) == 0.0D) {
|
||||||
|
|
@ -332,7 +349,7 @@ public class Scaffold extends Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
float lastYaw = lastBlockYaw;
|
float lastYaw = lastBlockYaw;
|
||||||
float newYaw = getMotionYaw() - (!Utils.scaffoldDiagonal(false) ? 126.625F : 142.625F) * Math.signum(
|
float newYaw = getMotionYaw() - (!Utils.scaffoldDiagonal(false) ? 126.625F : 138.625F) * Math.signum(
|
||||||
MathHelper.wrapAngleTo180_float(getMotionYaw() - yaw)
|
MathHelper.wrapAngleTo180_float(getMotionYaw() - yaw)
|
||||||
);
|
);
|
||||||
yaw = applyGcd(
|
yaw = applyGcd(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue