How to Remove the Replay Free Cam when Unpaused
I tried hard to find a way to disable the Free Cam when replaying a track, but there were several unavoidable things I couldn't get around. First and foremost, when you pause a replay it pauses EVERYTHING. All effects, objects, physics, and impulses are paused. Not even data sources are updated. Unfortunately That means that Free Cam and the Pivot Cam can never fully be disabled by a creator with some logic chains.
I did however make a way to disable the Free Cam when someone views a replay and ventures too far off from the Rider, when un-paused. The initial idea for this came completely from JolanXBL; I owe him for the discovery of the screen position updating differently. He originally mentioned it in this thread here --> http://forums.ubi.com/showthread.php...y-camera/page3 Props to him for finding it.
Here is a Google doc outlining how to disable the Free Cam --> https://docs.google.com/drawings/d/1...it?usp=sharing
What is does:
This method checks to make sure the Camera Target is still on screen. As soon as the Target goes off screen, it sets the Camera exposure to zero (turning the screen black) and turns on the hit detection for a custom collision that follows the Rider around. By turning on the custom collision and impacting the Rider in a way that doesn't happen normally during the track, the game will put the "This replay can no longer be viewed in Free Cam mode" message on screen. The person watching the replay will then have to restart the replay in normal mode. Unforntunetly, you can get around all of this by simply pausing the replay as soon as it starts.
I have developed other more complicated methods that will do the same thing and let even less of the track be viewed by someone with Free Cam on, but since pausing the replay goes around all of this, I decided just to post what I have. If anyone else develops a better method, or has some questions or comments, please feel free to post them below.
I hope this helps those who want to disable the Free Cam mode. If you guys want me to post the more complicated methods just let me know. They'll turn the screen black sooner than the method above will.