hedge-dev / hedge-dev/HMMCodes
[Feature Request][Sonic Frontiers] Allow redirection for "Disable Spin Charge Air Deceleration"
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 36
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
For the current "Disable Spin Charge Air Deceleration" code, Sonic is fixed to whatever direction he was in prior to spin charging in the air. I think a good quality of life improvement to this code is to allow the player to redirect where to land based on where they tilt the left stick.
I made an implementation of this in a physics mod I created, which uses Player.Kinematics to update the velocity vector using the GetForward() method. Just wanted to share this snippet and video demonstrations so someone can consider implementing this behavior in a much neater fashion lol. I hope what I provided can be helpful and insightful!
var kinematics = Player.Kinematics.Get();
if (kinematics == null) return;
// check if the player in the air
// check if LT is being held to prevent weird behaviors when spin charging a drop dash
// check if current state is the spin charge
if (
!Player.Status.IsGrounded() &&
Player.Input.IsDown(Player.InputActionType.PlayerSonicboom) &&
Player.State.GetCurrentStateID<Sonic.StateID>() == Sonic.StateID.StateSpinBoostCharge
) {
kinematics->Velocity += Player.Kinematics.GetForward();
}
Current implementation - https://youtu.be/fBZ_YGKGn78
My implementation - https://youtu.be/0ki7K9hYQkM
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing “Disable Spin Charge Air Deceleration” code and the Sonic state handling referenced in the issue. Review the Player.Kinematics, Player.Input, and Player.State calls in the provided snippet, then compare behavior with the linked demonstrations. Done means air spin charging allows landing direction to follow left-stick input without affecting grounded use or spin-charge drop dashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100