- Joined
- Jul 11, 2020
- Messages
- 0
- Reaction score
- 25
- Points
- 0
[hide]
private void aac3311() {
if (!Autist.instance.moduleManager.getModuleByName("Killaura").isEnabled())
{
if ((!mc.thePlayer.isInWater()) && (!mc.thePlayer.isInWeb))
{
if (mc.gameSettings.keyBindForward.pressed)
{
mc.timer.timerSpeed = (float) Autist.instance.setmgr.getSettingByName("aac3311boost").getValDouble();
setSpeed(0.015D);
if (mc.thePlayer.ticksExisted % 20 == 0) {
setSpeed(0.0015D);
}
}
else
{
mc.timer.timerSpeed = 1.0F;
}
mc.gameSettings.keyBindJump.pressed = false;
}
else
{
mc.timer.timerSpeed = 1.0F;
}
}
else {
mc.timer.timerSpeed = 1.0F;
}
}
public static void setSpeed(double speed)
{
MovementInput movementInput = mc.thePlayer.movementInput;
float forward = movementInput.moveForward;
float strafe = movementInput.moveStrafe;
float yaw = mc.thePlayer.rotationYaw;
if ((forward == 0.0F) && (strafe == 0.0F))
{
mc.thePlayer.motionX = 0.0D;
mc.thePlayer.motionZ = 0.0D;
}
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;
}
}
double mx = Math.cos(Math.toRadians(yaw + 90.0F));
double mz = Math.sin(Math.toRadians(yaw + 90.0F));
double motionX = forward * speed * mx + strafe * speed * mz;
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 * mz);
}
[/Hide]
private void aac3311() {
if (!Autist.instance.moduleManager.getModuleByName("Killaura").isEnabled())
{
if ((!mc.thePlayer.isInWater()) && (!mc.thePlayer.isInWeb))
{
if (mc.gameSettings.keyBindForward.pressed)
{
mc.timer.timerSpeed = (float) Autist.instance.setmgr.getSettingByName("aac3311boost").getValDouble();
setSpeed(0.015D);
if (mc.thePlayer.ticksExisted % 20 == 0) {
setSpeed(0.0015D);
}
}
else
{
mc.timer.timerSpeed = 1.0F;
}
mc.gameSettings.keyBindJump.pressed = false;
}
else
{
mc.timer.timerSpeed = 1.0F;
}
}
else {
mc.timer.timerSpeed = 1.0F;
}
}
public static void setSpeed(double speed)
{
MovementInput movementInput = mc.thePlayer.movementInput;
float forward = movementInput.moveForward;
float strafe = movementInput.moveStrafe;
float yaw = mc.thePlayer.rotationYaw;
if ((forward == 0.0F) && (strafe == 0.0F))
{
mc.thePlayer.motionX = 0.0D;
mc.thePlayer.motionZ = 0.0D;
}
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;
}
}
double mx = Math.cos(Math.toRadians(yaw + 90.0F));
double mz = Math.sin(Math.toRadians(yaw + 90.0F));
double motionX = forward * speed * mx + strafe * speed * mz;
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 * mz);
}
[/Hide]