Skip to content

smart pitch for bounce for 48bps - #331

Open
sophimoo wants to merge 1 commit into
lambda-client:1.21.11from
sophimoo:auto-pitch
Open

sophimoo wants to merge 1 commit into
lambda-client:1.21.11from
sophimoo:auto-pitch

Conversation

@sophimoo

Copy link
Copy Markdown

When enabled you can get up to 48bps (sometimes 50) when bouncing compared to the normal 40 bps at 72 degrees

@sophimoo

sophimoo commented Sep 17, 2026

Copy link
Copy Markdown
Author

okay idk which version i like better

	val targetPitch = when {
		!smartPitch -> pitch
		player.velocity.y > -0.2 -> 90.0
		else -> 4.0
	}
	rotationRequest { pitch(targetPitch) }.submit()

or

	if (smartPitch) rotationRequest { pitch(if (player.velocity.y > -0.2) 90.0 else 4.0) }.submit()
	else rotationRequest { pitch(pitch) }.submit()

The second one reads more readable to me but the first avoids doing submit twice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant