-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重写Step,增加KillAura在攻击的时候取消疾跑的设置,增加hypixel的StepMode,大改反客服并增加Hypixel mod…
…e,修改HypixelNewHop的跳跃值,增加RawInput模块以便修复鼠标突然乱飞的情况
- Loading branch information
1 parent
557501c
commit e9633da
Showing
32 changed files
with
1,347 additions
and
724 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
src/main/java/net/ccbluex/liquidbounce/features/module/modules/client/RawInput.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,52 @@ | ||
package net.ccbluex.liquidbounce.features.module.modules.client | ||
|
||
import net.ccbluex.liquidbounce.features.module.Module | ||
import net.ccbluex.liquidbounce.features.module.ModuleCategory | ||
import net.ccbluex.liquidbounce.features.module.ModuleInfo | ||
import net.ccbluex.liquidbounce.utils.RawMouseHelper | ||
import net.java.games.input.Controller | ||
import net.java.games.input.ControllerEnvironment | ||
import net.java.games.input.Mouse | ||
import net.minecraft.client.Minecraft | ||
import net.minecraftforge.fml.common.event.FMLInitializationEvent | ||
|
||
@ModuleInfo("RawInput", category = ModuleCategory.CLIENT) | ||
object RawInput : Module() { | ||
var mouse: Mouse? = null | ||
private lateinit var controllers: Array<Controller> | ||
var dx: Int = 0 | ||
var dy: Int = 0 | ||
|
||
fun init(event: FMLInitializationEvent?) { | ||
Minecraft.getMinecraft().mouseHelper = RawMouseHelper() | ||
controllers = ControllerEnvironment.getDefaultEnvironment().controllers | ||
|
||
val inputThread = Thread { | ||
while (true) { | ||
var i = 0 | ||
while (i < controllers.size && mouse == null) { | ||
if (controllers[i].type === Controller.Type.MOUSE) { | ||
controllers[i].poll() | ||
if ((controllers[i] as Mouse).x.pollData.toDouble() != 0.0 || (controllers[i] as Mouse).y.pollData.toDouble() != 0.0) mouse = | ||
controllers[i] as Mouse | ||
} | ||
i++ | ||
} | ||
if (mouse != null) { | ||
mouse!!.poll() | ||
|
||
dx += mouse!!.x.pollData.toInt() | ||
dy += mouse!!.y.pollData.toInt() | ||
} | ||
try { | ||
Thread.sleep(1) | ||
} catch (e: InterruptedException) { | ||
// TODO Auto-generated catch block | ||
e.printStackTrace() | ||
} | ||
} | ||
} | ||
inputThread.name = "inputThread" | ||
inputThread.start() | ||
} | ||
} |
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
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
Oops, something went wrong.
e9633da
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.
It seems u dont understand minecraft logic
e9633da
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.
我建议你给我拉取请求
e9633da
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.
But I am also unable to fix this bug...