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.
Add Redesky changes from old FDP commit
and some other small changes
- Loading branch information
1 parent
e7bb0df
commit fade497
Showing
2 changed files
with
65 additions
and
11 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
42 changes: 42 additions & 0 deletions
42
...net/ccbluex/liquidbounce/features/module/modules/movement/longjumpmodes/other/Redesky3.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,42 @@ | ||
/* | ||
* 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.movement.longjumpmodes.other | ||
|
||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3MovementReducer | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3ReduceMovement | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3UseTimer | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3JumpMovement | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3MotionY | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3ReduceYMotion | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3Timer | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.LongJump.redesky3YMotionReducer | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.longjumpmodes.LongJumpMode | ||
import net.ccbluex.liquidbounce.utils.extensions.resetSpeed | ||
|
||
/** | ||
* @author SkidderMC/FDPClient | ||
* @author liulihaocai | ||
*/ | ||
object Redesky3 : LongJumpMode("Redesky3") { | ||
private var airTicks = 0 | ||
override fun onDisable() { | ||
mc.timer.resetSpeed() | ||
airTicks = 0 | ||
} | ||
override fun onUpdate() { | ||
if (mc.thePlayer.onGround) return | ||
|
||
++airTicks | ||
|
||
val reduceMovement = if (redesky3MovementReducer) airTicks * redesky3ReduceMovement / 100f else 0f | ||
mc.thePlayer.jumpMovementFactor = redesky3JumpMovement - reduceMovement | ||
|
||
val reduceYMotion = if (redesky3YMotionReducer) airTicks * redesky3ReduceYMotion / 100f else 0f | ||
mc.thePlayer.motionY += (redesky3MotionY / 10) - reduceYMotion | ||
|
||
mc.timer.timerSpeed = if (redesky3UseTimer) redesky3Timer else 1f | ||
} | ||
} |