This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da854eb
commit c6f69ca
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...a/net/ccbluex/liquidbounce/features/module/modules/player/nofallmodes/matrix/Matrix663.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
} | ||
} | ||
} |