Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Port Matrix6.6.3 NoFall from NightX
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Feb 16, 2024
1 parent da854eb commit c6f69ca
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ object NoFall : Module("NoFall", ModuleCategory.PLAYER) {
AAC50142,

Matrix62x,
Matrix663,
OldMatrix,

Spartan,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* SkidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge, Forked from LiquidBounce.
* https://github.com/ManInMyVan/SkidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.player.nofallmodes.matrix

import net.ccbluex.liquidbounce.event.PacketEvent
import net.ccbluex.liquidbounce.features.module.modules.player.nofallmodes.NoFallMode
import net.ccbluex.liquidbounce.utils.PacketUtils.sendPacket
import net.ccbluex.liquidbounce.utils.extensions.resetSpeed
import net.minecraft.network.play.client.C03PacketPlayer
import net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition

object Matrix663 : NoFallMode("Matrix6.6.3") {
private var packet = false
private var timer = false

override fun onEnable() {
packet = false
}

override fun onUpdate() {
if (timer) {
mc.timer.resetSpeed()
timer = false
}

if (mc.thePlayer.fallDistance - mc.thePlayer.motionY > 3F) {
mc.thePlayer.fallDistance = 0.0f
packet = true
mc.timer.timerSpeed = 0.5f
timer = true
}
}

override fun onPacket(event: PacketEvent) {
if (packet && event.packet is C03PacketPlayer) {
packet = false
event.cancelEvent()
sendPacket(
C04PacketPlayerPosition(
event.packet.x,
event.packet.y,
event.packet.z,
true
),
false
)
sendPacket(
C04PacketPlayerPosition(
event.packet.x,
event.packet.y,
event.packet.z,
false
),
false
)
}
}
}

0 comments on commit c6f69ca

Please sign in to comment.