All Rust commits from Facepunch
Rename FirstPersonSpectatorMode to SpectatorMode and invoke it when spectating in the third person camera Fixes a few things only working in the first person spectate camera
▇ ▄▄▋▊▊▇▉▄ ▉▋▋▌▋▄▌▉▌ ▍█ ▉▅█▍▊▊ ▇▋▆▆ ▅▇ ▊▌ ▉▄▉ ▅▉▍▆█▋▅▋▄▍ ▄ ▆▊▆▄▆▄
Fix third person player sounds not working correctly in spectator mode Fix previous commit breaking the cycling order of the camera viewmodes
Compile fix UIPrisonerHoodOverlay
Merge from main
Replace LocalOrSpectatePlayer property with GetLocalOrSpectatePlayer() that will always prefer to return the currently spectated player regardless of current camera viewmode Replaced property with getter method to make it clearer that we should prefer to cache the player rather than repeatedly fetching Checked and replaced all the previous usages. Many files touched, many minor bugs fixed due to the spectate player value having been wrong. Definitely* no new bugs introduced
Metabolism values should now immediately update to latest values upon spectating a player
Merge from main
Fix spam from passing in a zero vector to Quaternion.LookRotation when spectating mounted bots
Merge from main
Merge from main
Commit progress on misc spectating improvements: - Can now spectate bots with 'global.spectatebots' enabled - Can now open chat whilst spectating in third person - Vitals UI should now update correctly whilst spectating in third person - Display SteamID alongside player name when spectating a new player