-
Notifications
You must be signed in to change notification settings - Fork 39
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
Prevent music triggers from playing again after loading a save file #371
Comments
This error cannot be fully fixed. It also manifests in a slightly different form:
The reason for this is because the game remembers which track was played recently and even if the author of the level forgot to mark given trigger as one-shot, this logic ensures that we do not play the same music track twice in a row. To fix this, we have two solutions: the first is to find every broken trigger in each level and mark it as a one-shot. Not very sustainable or elegant in my opinion. A second, more sensible approach would be to add to the save file information about what track was last played, letting the in-game protection against playing the same track twice in a row continue doing its job even after save and reload. This of course needs #277 as everything that has to do with saves. |
@rr- maybe marking every trigger as one shot is now possible? We already traverse them all to do stat calculation. Let me know what you think. |
I haven't thought about this. Won't this lead to regressions? |
How so? Aren't all music triggers supposed to be played only once? |
Custom levels with Lara saying "I should revisit this area later" before a flip? |
For custom levels, could people just create two triggers in the same place, to be used up in concession of game progression? |
I've noticed that music triggers can play more than once, it goes like this:
This is noticable in areas where Lara have to do backtracking.
The text was updated successfully, but these errors were encountered: