This commit is contained in:
parent
62817f7f5f
commit
608d1ae801
|
|
@ -43,7 +43,7 @@ public class NoSlow extends Module {
|
|||
public static boolean noSlowing, offset, fix;
|
||||
private int ticksOffStairs = 30;
|
||||
private boolean setCancelled, didC;
|
||||
private int grounded;
|
||||
private int grounded, offsetDelay;
|
||||
|
||||
public NoSlow() {
|
||||
super("NoSlow", category.movement, 0);
|
||||
|
|
@ -214,10 +214,18 @@ public class NoSlow extends Module {
|
|||
offset = false;
|
||||
return;
|
||||
}
|
||||
if (mc.thePlayer.ticksExisted % 2 == 0 || mc.thePlayer.onGround) {
|
||||
e.setPosY(e.getPosY() + ModuleUtils.offsetValue);
|
||||
offset = true;
|
||||
if (offsetDelay <= 2) {
|
||||
++offsetDelay;
|
||||
return;
|
||||
}
|
||||
if (mc.thePlayer.motionY >= -0.0784000015258789) {
|
||||
e.setPosY(e.getPosY() + ModuleUtils.offsetValue);
|
||||
}
|
||||
else {
|
||||
e.setPosY(e.getPosY() - ModuleUtils.offsetValue);
|
||||
}
|
||||
ModuleManager.scaffold.offsetDelay = 2;
|
||||
offset = true;
|
||||
if (groundSpeedOption.isToggled()) {
|
||||
if (!ModuleManager.killAura.isTargeting && !Utils.noSlowingBackWithBow() && !Utils.jumpDown() && mc.thePlayer.moveForward <= -0.5 && mc.thePlayer.moveStrafing == 0 && offset && Utils.isMoving() && mc.thePlayer.onGround) {
|
||||
float yaw = mc.thePlayer.rotationYaw;
|
||||
|
|
@ -293,7 +301,7 @@ public class NoSlow extends Module {
|
|||
|
||||
private void resetFloat() {
|
||||
reSendConsume = canFloat = noSlowing = offset = didC = fix = requireJump = false;
|
||||
grounded = 0;
|
||||
grounded = offsetDelay = 0;
|
||||
}
|
||||
|
||||
public static boolean hasArrows(ItemStack stack) {
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ public class Scaffold extends Module {
|
|||
private boolean floatStarted;
|
||||
private boolean floatWasEnabled;
|
||||
private boolean floatKeepY;
|
||||
public int offsetDelay;
|
||||
|
||||
//disable checks
|
||||
public boolean moduleEnabled;
|
||||
|
|
@ -234,7 +235,7 @@ public class Scaffold extends Module {
|
|||
//Float
|
||||
if (sprint.getInput() == 2 && !usingFastScaffold() && !fastScaffoldKeepY && !ModuleManager.tower.canTower() && !LongJump.function) {
|
||||
floatWasEnabled = true;
|
||||
if (!floatStarted) {
|
||||
if (!floatStarted && offsetDelay == 0) {
|
||||
if (ModuleUtils.groundTicks > 8 && mc.thePlayer.onGround) {
|
||||
floatKeepY = true;
|
||||
startYPos = e.posY;
|
||||
|
|
@ -258,6 +259,7 @@ public class Scaffold extends Module {
|
|||
if (moduleEnabled) {
|
||||
e.setPosY(e.getPosY() + ModuleUtils.offsetValue);
|
||||
if (Utils.isMoving()) Utils.setSpeed(getFloatSpeed(getSpeedLevel()));
|
||||
offsetDelay = 2;
|
||||
}
|
||||
}
|
||||
} else if (floatWasEnabled && moduleEnabled) {
|
||||
|
|
|
|||
|
|
@ -379,8 +379,8 @@ public class Tower extends Module {
|
|||
return canTower() && !Utils.keysDown() && verticalTower.getInput() == 2;
|
||||
}
|
||||
|
||||
@SubscribeEvent(priority = EventPriority.LOWEST)
|
||||
public void onMoveInput(PrePlayerInputEvent e) {
|
||||
@SubscribeEvent
|
||||
public void onPostPlayerInput(PostPlayerInputEvent e) {
|
||||
if (!ModuleManager.scaffold.isEnabled) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -309,6 +309,10 @@ public class ModuleUtils {
|
|||
public void onPreMotion(PreMotionEvent e) {
|
||||
int simpleY = (int) Math.round((e.posY % 1) * 10000);
|
||||
|
||||
if (ModuleManager.scaffold.offsetDelay > 0) {
|
||||
--ModuleManager.scaffold.offsetDelay;
|
||||
}
|
||||
|
||||
lastTickOnGround = thisTickOnGround;
|
||||
thisTickOnGround = mc.thePlayer.onGround;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue