New Spectator Camera mode: Free roam camera #391
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding a new camera mode for spectators: Free Roam Camera
While spectating, the player can press 'Space Bar' to turn on the Free Cam. (This control is shown in the UI)
When toggled on the camera will switch to a third person view of the game in progress.
While viewing in free roam mode the camera has a few controls for changing the camera view:
Forward/Left/Right/Backward (W,A,S,D)- Camera strafes in the given direction
Q - Camera moves vertically Up
E - Camera moves vertically Down
Mouse Left/Right - Camera rotates horizontally in a circle around its focal point
Spectate Next/Prev - Camera will follow the next HECTOR in the list. Camera can be disengaged from the HECTOR by pressing any of the strafe controls
Currently no new controls were added for this so they are based on your HECTOR piloting controls.Separate free cam controls will likely need to be added later.Added new controls in the prefs specifically for free cam control
Known Issues
When the free cam is toggled on, some players seem to get visibly removed from the player list only for the player using the free roam cam. From what I could tell, this seemed to not cause any problems for the rest of the server.