-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor some functions with gravity jump (#815)
- Rename func_800FF064 to HandleGravityBootsMP (call graph proves that this is the only use: https://raw.githubusercontent.com/Xeeynamo/sotn-decomp/gh-duplicates/function_calls/dra.func_800FF064.svg) - Rewrite that function to use the CallMode system we developed earlier, and also rewrite it to not need the extra variable. Function is now much shorter. - Rename func_8010E9A4 to DoGravityJump. This function sets Alucard's velocity to move up rapidly, spawns the gravity boot laser beam entity, and sets the player state machine's step. - Fill in enums for SetPlayerStep in a few related places. Overall I think this makes the logic more readable. Next going to look into g_Player.unk44 because that seems to be the last missing piece here.
- Loading branch information
Showing
3 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters