Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement intent-sensitive ladder snapping, sprinting #96

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

FailSpy
Copy link
Contributor

@FailSpy FailSpy commented Mar 10, 2024

More controller improvements!
Addresses #84

  • Implemented sprinting on ladders, with exported vars to enable/disable and set sprinting speed on ladder
  • is_sprinting will now change correctly so stamina doesn't burn whilst on the ladder for no reason
  • Added intent-sensitive ladder movement. Ladder movement will generally prefer "W" being up, but if the player is pointing heavily downwards, then their "W" direction is switched to downwards, and "S" is upwards.
  • If the player is looking downwards, and facing opposite the ladder as they enter its collider, it assumes the player is attempting to go down the ladder and snaps them on to it
  • Additionally, players should now be able to run perpendicular to a ladder without getting caught on it, as the player now needs to be at least somewhat facing the ladder to go up it.

Copy link
Owner

@Phazorknight Phazorknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing!
Subjectively I feel like jumping while on the ladder has become a bit more "sticky", but I honestly don't mind. the benefits of these changes make navigating ladders way better.

Thank you!

@Phazorknight Phazorknight merged commit 146326d into Phazorknight:main Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants