Skip to content

Commit

Permalink
feat(legacy): Re-added UseStaticRotation, renamed it to UseOptimizedP…
Browse files Browse the repository at this point in the history
…itch. (CCBlueX#4041)
  • Loading branch information
mems01 authored Oct 1, 2024
1 parent 3ba0a5c commit e14912f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ object Scaffold : Module("Scaffold", Category.WORLD, Keyboard.KEY_I, hideModule

// GodBridge mode sub-values
private val waitForRots by BoolValue("WaitForRotations", false) { isGodBridgeEnabled }
private val customGodPitch by FloatValue("GodBridgePitch", 73.5f, 0f..90f) { isGodBridgeEnabled }
private val useOptimizedPitch by BoolValue("UseOptimizedPitch", false) { isGodBridgeEnabled }
private val customGodPitch by FloatValue("GodBridgePitch",
73.5f,
0f..90f
) { isGodBridgeEnabled && useOptimizedPitch }

val jumpAutomatically by BoolValue("JumpAutomatically", true) { scaffoldMode == "GodBridge" }
private val maxBlocksToJump: IntegerValue = object : IntegerValue("MaxBlocksToJump", 4, 1..8) {
Expand Down Expand Up @@ -1421,7 +1425,7 @@ object Scaffold : Module("Scaffold", Category.WORLD, Keyboard.KEY_I, hideModule
}
}

Rotation(movingYaw + if (isOnRightSide) 45f else -45f, customGodPitch)
Rotation(movingYaw + if (isOnRightSide) 45f else -45f, if (useOptimizedPitch) 73.5f else customGodPitch)
} else {
Rotation(movingYaw, 75.6f)
}.fixedSensitivity()
Expand Down

0 comments on commit e14912f

Please sign in to comment.