Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AimBot): Consider open containers #5318

Open
wants to merge 1 commit into
base: nextgen
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import net.ccbluex.liquidbounce.utils.combat.PriorityEnum
import net.ccbluex.liquidbounce.utils.combat.TargetTracker
import net.ccbluex.liquidbounce.utils.entity.boxedDistanceTo
import net.ccbluex.liquidbounce.utils.entity.rotation
import net.ccbluex.liquidbounce.utils.inventory.InventoryManager
import net.ccbluex.liquidbounce.utils.render.WorldTargetRenderer
import net.minecraft.client.gui.screen.ingame.HandledScreen
import net.minecraft.entity.Entity
import net.minecraft.util.math.MathHelper

Expand Down Expand Up @@ -70,6 +72,9 @@ object ModuleAimbot : ClientModule("Aimbot", Category.COMBAT, aliases = arrayOf(

private val slowStart = tree(SlowStart(this))

private val ignoreOpenScreen by boolean("IgnoreOpenScreen", false)
private val ignoreOpenContainer by boolean("IgnoreOpenContainer", false)

private var targetRotation: Rotation? = null
private var playerRotation: Rotation? = null

Expand Down Expand Up @@ -115,6 +120,14 @@ object ModuleAimbot : ClientModule("Aimbot", Category.COMBAT, aliases = arrayOf(
targetRenderer.render(this, target, partialTicks)
}

if (!ignoreOpenScreen && mc.currentScreen != null) {
return@handler
}

if (!ignoreOpenContainer && (InventoryManager.isInventoryOpen || mc.currentScreen is HandledScreen<*>)) {
return@handler
}

val currentRotation = playerRotation ?: return@handler

val timerSpeed = Timer.timerSpeed
Expand Down
Loading