KillAura: Rotate & swing options

This commit is contained in:
noil 2021-11-06 19:27:49 -04:00
parent f61718739f
commit a330429838
1 changed files with 6 additions and 2 deletions

View File

@ -38,6 +38,8 @@ public final class KillAuraModule extends Module {
public final Value<Boolean> projectiles = new Value<>("Projectiles", new String[]{"Projectile", "Proj"}, "Choose to target projectiles", true);
public final Value<Float> range = new Value<>("Range", new String[]{"Dist"}, "The minimum range to attack", 4.5f, 0.0f, 5.0f, 0.1f);
public final Value<Boolean> rotate = new Value<>("Rotate", new String[]{"R"}, "Rotate the players head while attacking", true);
public final Value<Boolean> swing = new Value<>("Swing", new String[]{"S"}, "Swing the players arm while attacking", true);
public final Value<Boolean> coolDown = new Value<>("CoolDown", new String[]{"CoolD"}, "Delay your hits to gain damage", true);
public final Value<Boolean> sync = new Value<>("Sync", new String[]{"snc"}, "Sync your hits with the server's estimated TPS", true);
public final Value<Boolean> teleport = new Value<>("Teleport", new String[]{"tp"}, "Teleports to your target (Only works on vanilla)", false);
@ -70,7 +72,7 @@ public final class KillAuraModule extends Module {
final float[] angle = MathUtil.calcAngle(mc.player.getPositionEyes(mc.getRenderPartialTicks()), this.currentTarget.getPositionEyes(mc.getRenderPartialTicks()));
Seppuku.INSTANCE.getRotationManager().startTask(this.rotationTask);
if (this.rotationTask.isOnline()) {
if (this.rotationTask.isOnline() && this.rotate.getValue()) {
Seppuku.INSTANCE.getRotationManager().setPlayerRotations(angle[0], angle[1]);
}
@ -91,7 +93,9 @@ public final class KillAuraModule extends Module {
}
mc.player.connection.sendPacket(new CPacketUseEntity(this.currentTarget));
mc.player.swingArm(EnumHand.MAIN_HAND);
if (this.swing.getValue()) {
mc.player.swingArm(EnumHand.MAIN_HAND);
}
mc.player.resetCooldown();
}
} else {