File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed
src/main/kotlin/com/lambda/client/module/modules/movement Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -261,19 +261,16 @@ object Speed : Module(
261261 }
262262
263263 private fun SafeClientEvent.handleStrafe (event : PlayerMoveEvent ) {
264-
265- if (
266- ! shouldStrafe()
267- ) {
264+ if (! shouldStrafe()) {
268265 resetTimer()
269266 event.x = .0
270267 event.z = .0
271268 currentSpeed = .2873
272269 return
273270 }
274271
275- if (! ( ! strafeOnlyOverhead || world.collidesWithAnyBlock(player.entityBoundingBox.offset(.0 ,.42 ,.0 ) ))
276- || ! ( ! strafeOnHoldingSprint || mc.gameSettings.keyBindSprint.isKeyDown) )
272+ if (strafeOnlyOverhead && ! world.collidesWithAnyBlock(player.entityBoundingBox.offset(.0 ,.42 ,.0 ))
273+ || strafeOnHoldingSprint && ! mc.gameSettings.keyBindSprint.isKeyDown)
277274 return
278275
279276 modifyTimer(TIMER_SPEED )
@@ -284,44 +281,27 @@ object Speed : Module(
284281 strafePhase = StrafePhase .ACCELERATING
285282
286283 when (strafePhase) {
287-
288284 StrafePhase .ACCELERATING -> {
289-
290285 if (player.onGround)
291286 event.y = .42
292- else
293- strafePhase = StrafePhase .FALLING
294-
295287 currentSpeed = base
296- currentSpeed * = if (strafeAirSpeedBoost == StrafeMode .Strict ) (1.87 ) else (1.93 )
297-
288+ currentSpeed * = if (strafeAirSpeedBoost == StrafeMode .Strict ) 1.87 else 1.93
298289 strafePhase = StrafePhase .SLOWDOWN
299-
300290 }
301291
302292 StrafePhase .SLOWDOWN -> {
303-
304293 currentSpeed - = .66 * base
305-
306294 strafePhase = StrafePhase .FALLING
307-
308295 }
309296
310297 StrafePhase .FALLING -> {
311-
312298 currentSpeed = lastDistance - lastDistance / 159
313-
314299 }
315-
316300 }
317301
318302 val yaw = calcMoveYaw()
319-
320303 currentSpeed = currentSpeed.coerceAtLeast(.2873 )
321-
322304 event.x = - sin(yaw) * currentSpeed
323305 event.z = cos(yaw) * currentSpeed
324-
325306 }
326-
327307}
You can’t perform that action at this time.
0 commit comments