-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
Update DisablerVulcanScaffold.kt #4181
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4a63c01
Update DisablerVulcanScaffold.kt
TheColorfulGabibbo f0fccbf
Update DisablerVulcanScaffold.kt
TheColorfulGabibbo 38dcde0
Merge branch 'CCBlueX:nextgen' into patch-1
TheColorfulGabibbo 0702fda
Update DisablerVulcanScaffold.kt
TheColorfulGabibbo 3b2ba60
Update ScaffoldTellyFeature.kt
TheColorfulGabibbo 5361844
code refactoring to the disabler
TheColorfulGabibbo a6d1cd6
VulcanScaffold disabler code refactoring #2
TheColorfulGabibbo f6d553f
third code refactoring
TheColorfulGabibbo 746b5a1
should work now
TheColorfulGabibbo 528a0b5
Merge branch 'nextgen' into fork/TheColorfulGabibbo/patch-1
1zun4 3ca9f37
refactor: code fix
1zun4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -23,34 +23,54 @@ import net.ccbluex.liquidbounce.event.events.PlayerTickEvent | |||||||||||||||||||||||||
import net.ccbluex.liquidbounce.event.handler | ||||||||||||||||||||||||||
import net.ccbluex.liquidbounce.features.module.modules.exploit.disabler.ModuleDisabler | ||||||||||||||||||||||||||
import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket | ||||||||||||||||||||||||||
import net.ccbluex.liquidbounce.features.module.modules.world.scaffold.ModuleScaffold.isTowering | ||||||||||||||||||||||||||
import net.ccbluex.liquidbounce.features.module.modules.world.scaffold.techniques.normal.ScaffoldTellyFeature.isTellyBridging | ||||||||||||||||||||||||||
import kotlin.random.Random | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
/** | ||||||||||||||||||||||||||
/* | ||||||||||||||||||||||||||
* Tested on eu.loyisa.cn, anticheat-test.com | ||||||||||||||||||||||||||
* Author: Nullable | ||||||||||||||||||||||||||
* Author: TrimoneWasTaken | ||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||
* Sending start sprint and stop sprint disables vulcan direction sprint checks, | ||||||||||||||||||||||||||
* since vulcan thinks you are just spamming sprint. | ||||||||||||||||||||||||||
* | ||||||||||||||||||||||||||
* Most vulcan scaffold checks (including limit) check if you have sneaked in | ||||||||||||||||||||||||||
* the last 15 ticks. By using packets to sneak and unsneak, you can | ||||||||||||||||||||||||||
* the last 15 ticks. By using packets to unsneak, you can exploit this check and | ||||||||||||||||||||||||||
* disable limit checks. | ||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
internal object DisablerVulcanScaffold : ToggleableConfigurable(ModuleDisabler, "VulcanScaffold", false) { | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
@Suppress("ComplexCondition") | ||||||||||||||||||||||||||
val tickHandler = handler<PlayerTickEvent> { | ||||||||||||||||||||||||||
if (player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder | ||||||||||||||||||||||||||
|| player.abilities.flying) { | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
if (player.isInFluid || player.isTouchingWater || player.isDead || player.isHoldingOntoLadder|| player.abilities.flying) { | ||||||||||||||||||||||||||
// If the player meets one of theese requirements we return to the handler or else it will flag | ||||||||||||||||||||||||||
1zun4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||
return@handler | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.START_SPRINTING)) | ||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.STOP_SPRINTING)) | ||||||||||||||||||||||||||
if (player.age % 10 == 0) { | ||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.PRESS_SHIFT_KEY)) | ||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||||||||||||||||||||||||||
// Fix for the disabler not triggering while telly bridging | ||||||||||||||||||||||||||
if (isTellyBridging && player.age % 9 == 0 && Random.nextFloat() <= 0.7f) { | ||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
if (player.isOnGround && isTowering && Random.nextFloat() <= 0.2f) { | ||||||||||||||||||||||||||
/* | ||||||||||||||||||||||||||
* We use probability to send unsneak when the player is on ground and is towering to fix the | ||||||||||||||||||||||||||
* flag of scaffold-packets check and scaffold K check, this implementation | ||||||||||||||||||||||||||
* works with low hop towers like karhu, or any tower that sometimes hit the ground. | ||||||||||||||||||||||||||
*/ | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.START_SPRINTING)) | ||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player,ClientCommandC2SPacket.Mode.STOP_SPRINTING)) | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
if (player.age % 9 == 0) { | ||||||||||||||||||||||||||
if (player.isOnGround && !isTellyBridging && !isTowering) { | ||||||||||||||||||||||||||
network.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.RELEASE_SHIFT_KEY)) | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.