Skip to content

feat: Add altitude loss detector and enhance unstuck feature#9

Merged
omtoi101 merged 1 commit into
mainfrom
feature/altitude-loss-detector
Sep 21, 2025
Merged

feat: Add altitude loss detector and enhance unstuck feature#9
omtoi101 merged 1 commit into
mainfrom
feature/altitude-loss-detector

Conversation

@omtoi101

Copy link
Copy Markdown
Owner
  • Creates a new AltitudeLossDetector module to detect rapid altitude loss and trigger an auto-unstuck mechanism.
  • The auto-unstuck feature simulates holding the jump key for 5 seconds to help the player recover from falls.
  • Adds a new KeyHold utility class to manage key presses over a duration using tick events, ensuring stability and preventing race conditions.
  • Enhances the existing StuckDetector module to also use the KeyHold utility, adding the 5-second jump to its arsenal of unstuck methods.

- Creates a new `AltitudeLossDetector` module to detect rapid altitude loss and trigger an auto-unstuck mechanism.
- The auto-unstuck feature simulates holding the jump key for 5 seconds to help the player recover from falls.
- Adds a new `KeyHold` utility class to manage key presses over a duration using tick events, ensuring stability and preventing race conditions.
- Enhances the existing `StuckDetector` module to also use the `KeyHold` utility, adding the 5-second jump to its arsenal of unstuck methods.
@omtoi101 omtoi101 merged commit 1d7b81b into main Sep 21, 2025
0 of 2 checks passed
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.

1 participant