avaraline / Avara

Port of the original 1996 game from Ambrosia Software.
MIT License
122 stars 19 forks source link

New Spectator Camera mode: Free roam camera #391

Closed Ymihere03 closed 7 months ago

Ymihere03 commented 7 months ago

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.