The-New-Platinum-Team / PlatinumQuest-Dev

The main repository for the game PlatinumQuest after the formation of new development team.
MIT License
14 stars 8 forks source link

Store respawn inputs in replays #97

Closed thearst3rd closed 1 year ago

thearst3rd commented 1 year ago

Fixes replay issues when a player presses the respawn key to go to a checkpoint. See the beginning of PQ WRR, Xedron goes OOB to get the checkpoint, respawns at it, and the camera still acts as is he is OOB: https://www.youtube.com/watch?v=QQlI_XP6F6w

It fixes other issues as well, such as powerups not getting reset properly/gems not respawning/etc.

This does not work retroactively, it only works on newly created replays. Also I want to make sure it doesn't cause problems if the player is holding the respawn button when a run starts (such as, they pressed it while not at a checkpoint). It seems fine, and maybe at the worst case, it plays the respawn sound twice. I still want to make sure it's not causing further problems. Ok, now it should only store checkpoint respawns so there should be no issues there.