You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateval takeoff by setting("Takeoff", true, "Automatically jumps and initiates gliding") { mode ==FlyMode.Bounce }
86
88
privateval autoPitch by setting("Auto Pitch", true, "Automatically pitches the players rotation down to bounce at faster speeds") { mode ==FlyMode.Bounce }
privatevalflagPause by setting("Flag Pause", 5, 0..100, 1, "How long to pause if the server flags you for a movement check", "ticks") { mode ==FlyMode.Bounce }
91
+
privatevalinterruptPause by setting("Interrupt Pause", 5, 0..100, 1, "How long to pause if the server flags you for a movement check", "ticks") { mode ==FlyMode.Bounce }
90
92
91
93
privateconstvalY_MOTION_GROUP="Y Motion"
92
94
@Group(Y_MOTION_GROUP) privateval yMotionSetting by setting("Y Motion", false, "Cancels the players y velocity to aid speed") { mode ==FlyMode.Bounce }
@Group(Y_MOTION_GROUP) privateval onlyOnDiagonal:Boolean by setting("Only On Diagonal", true, "Only use y motion when the player is flying on a non-axial angle") { mode ==FlyMode.Bounce&& yMotionSetting }
96
96
@Group(Y_MOTION_GROUP) privateval minDiagonalAngle by setting("Min Diagonal Angle", 15.0, 0.0..180.0, 0.1, "The minimum angle the player must be flying to use y motion") { mode ==FlyMode.Bounce&& yMotionSetting && onlyOnDiagonal }
@Group(OBSTACLE_PASSER_GROUP) privateval passObstacles by setting("Pass Obstacles", true, "Automatically paths around obstacles using baritone") { mode ==FlyMode.Bounce }
102
-
@Group(OBSTACLE_PASSER_GROUP) privateval minObstacleHeight by setting("Min Obstacle Height", 0.063, 0.0..1.0, 0.0001, "The minimum height an obstacle must be above the ground to trigger obstacle passer")
103
-
@Group(OBSTACLE_PASSER_GROUP) privateval applyPauseAfterBaritone by setting("Apply Pause After Baritone", false, "Ticks the flag pause after baritone has finished pathing") { mode ==FlyMode.Bounce&& passObstacles }
111
+
@Group(OBSTACLE_PASSER_GROUP) privateval walkWhenFlagged by setting("Walk When Flagged", true, "Triggers obstacle passer when the server forces your position (typically getting flagged by the anticheat)") { mode ==FlyMode.Bounce&& passObstacles }
112
+
@Group(OBSTACLE_PASSER_GROUP) privateval minObstacleHeight by setting("Min Obstacle Height", 0.063, 0.0..1.0, 0.0001, "The minimum height an obstacle must be above the ground to trigger obstacle passer") { mode ==FlyMode.Bounce&& passObstacles }
113
+
@Group(OBSTACLE_PASSER_GROUP) privateval pauseAfterPathing by setting("Pause After Pathing", false, "Ticks the flag pause after baritone has finished pathing") { mode ==FlyMode.Bounce&& passObstacles }
104
114
@Group(OBSTACLE_PASSER_GROUP) privateval acceptableOffsetRange by setting("Acceptable Offset Range", 2.0, 0.1..5.0, 0.01, "Acceptable offset from the original flight line to allow when starting to fly again after passing obstacles") { mode ==FlyMode.Bounce&& passObstacles }
105
115
@Group(OBSTACLE_PASSER_GROUP) privateval obstacleLookAhead by setting("Obstacle Look-Ahead", 15, 0..50, 1, "Looks ahead of the player to see if obstacles are in the way") { mode ==FlyMode.Bounce&& passObstacles }
106
116
@Group(OBSTACLE_PASSER_GROUP) privateval directionStep by setting("Direction Step", 45.0, 0.0..180.0, 0.1, "The step size to use when locking the flight direction") { mode ==FlyMode.Bounce&& passObstacles }
@@ -112,9 +122,9 @@ object ElytraFly : Module(
112
122
113
123
privatevar startPos =Vec3d.ZERO
114
124
privatevar jumpThisTick =false
115
-
privatevarpreviouslyFlying:Boolean?=null
125
+
privatevarprevGliding:Boolean?=null
116
126
privatevar passingToPos:Vec3d?=null
117
-
privatevar glidePause=0
127
+
privateval pauseTimer=TickTimer()
118
128
119
129
privatevar flipFlop =false
120
130
privatevar lastDuration =1.0
@@ -137,10 +147,6 @@ object ElytraFly : Module(
137
147
}
138
148
}
139
149
140
-
listen<TickEvent.Post> {
141
-
if (glidePause >0&&!applyPauseAfterBaritone) glidePause--
142
-
}
143
-
144
150
onEnable {
145
151
startPos = player.pos
146
152
}
@@ -155,7 +161,11 @@ object ElytraFly : Module(
155
161
if (mode ==FlyMode.Bounce&& player.isGliding) {
156
162
val snappedDir = getSnappedDir()
157
163
val closestLinePoint = player.pos.findClosestPointOnLine(snappedDir)
0 commit comments