Skip to content

Commit

Permalink
LEGACY: HypixelBlink NoFall Small Tweaks (CCBlueX#2836)
Browse files Browse the repository at this point in the history
  • Loading branch information
EclipsesDev committed Apr 17, 2024
1 parent 3a2b184 commit 967dd86
Showing 1 changed file with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ import net.ccbluex.liquidbounce.script.api.global.Chat
import net.ccbluex.liquidbounce.utils.BlinkUtils
import net.ccbluex.liquidbounce.utils.SimulatedPlayer
import net.ccbluex.liquidbounce.utils.render.RenderUtils.drawBacktrackBox
import net.ccbluex.liquidbounce.utils.timing.TickTimer
import net.minecraft.network.play.client.C03PacketPlayer
import net.minecraft.util.AxisAlignedBB
import java.awt.Color

object HypixelBlink : NoFallMode("HypixelBlink") {
private var blinked = false

private val tick = TickTimer()

override fun onDisable() {
BlinkUtils.unblink()
blinked = false
tick.reset()
}

override fun onPacket(event: PacketEvent) {
Expand All @@ -40,14 +44,21 @@ object HypixelBlink : NoFallMode("HypixelBlink") {
simPlayer.tick()
}

if (thePlayer.onGround && simPlayer.onGround && blinked) {
BlinkUtils.unblink()
blinked = false
if (simPlayer.onGround && blinked) {
if (thePlayer.onGround) {
tick.update()

if (tick.hasTimePassed(150)) {
BlinkUtils.unblink()
blinked = false
Chat.print("Unblink")

if (autoOff) {
state = false
if (autoOff) {
state = false
}
tick.reset()
}
}
Chat.print("Unblink")
}

if (event.packet is C03PacketPlayer) {
Expand Down Expand Up @@ -84,7 +95,7 @@ object HypixelBlink : NoFallMode("HypixelBlink") {
BlinkUtils.addFakePlayer()

Chat.print("Blinked")
BlinkUtils.blink(packet, event)
BlinkUtils.blink(packet, event, sent = true, receive = true)
}
}
}
Expand Down

0 comments on commit 967dd86

Please sign in to comment.