branchrust_reboot/main/firstpersonspectatecancel
105 Commits over 365 Days - 0.01cph!
Compass now orients correctly based on current player being spectated in a demo, rather than always based on the player who recorded a demo
Fix dynamic LOD components not getting updated at all in demos (fixes disappearing horses, vehicles, etc)
Fixed eoka attempted fires not being shown when first person spectating
Fixes NaN errors from projectiles that are paused mid flight (only applies to demos)
Can now press F3 to switch between first and third person while spectating in a demo
Suppress weapon deploy animations when switching between players while spectating
▉▄▌'▌ █▆▍▍ █▆▋▇▅ ▋█▄▋ ▌▍ ▍▄▄▉ ▉▋▊▍▉▅▊▍ ▉▅▄▄ █ ▉▅▊▇▌▉ ▅▋ ▄▇▇▊ ▇▉▋▌▄▇ ▆▉ █▇▄▌▆▇ ▋▋ ▆ ▆▆▅▋▄▉▊▅▉
Use the standard ragdoll eye perspective when spectating a player who is dead
Properly lerp between crouched/standing views while spectating
Fixed viewmodels bobbing incorrectly when first person specating in a demo with graphics.viewmodelcamera set to false
Modified inventory.deployloadout to use the local player if a player isn't provided
Added inventory.clearinventory, will use either a targeted player or the local player if no target is provided
Added inventory.disableAttireLimitations, allows players to equip NPC only clothing as well as combinations that would normally be illegal (hazmat+sunglasses) for cinematics
Fixed cycling through spectate targets with space and ctrl causing the player to spectate NPC's
Fixed viewmodel bob applying like the player is running while mounted to a moving entity while spectating
Fixed helmet overlays staying active after leaving first person spectate (either by switching to another player, going into third person or going into debug cam)
Fix code lock UI appearing in a demo when a player attempts to enter a code
Apply to FrequencyConfig and CounterConfig as well
New UIAutoPanelCloser component that closes UI panels if the player dies, gets wounded or starts spectating
Applied to Assign to Friend, Sign painting, code lock and tech tree full screen panels
Fix NRE spam in workshop screens
Fixed some more issues with the nametags
Show death and sleeping UI if the player being first person spectated is dead or asleep
Added a button to spectate a player in the player info panel of the server admin F1 tab
Update head look flag to fix merge conflict
Improve camera angles when entering/exiting parent volumes (still not quite perfect, but a bit better now)
Added support for alt look while spectating (added a new model state flag to track when a player is alt looking)
Rename EntitySpectateAware -> LocalOrSpectatePlayer
Update RPC overloads
Fixed third person mode when spectating
Make all FirstPersonSpectatorMode variables private
Added LocalPlayer.SpectatePlayer that will return the player being spectated and null otherwise, this should be used when there is specific behaviour that is required when in spectate mode (not in regular gameplay)
Remove some redundant spectator checks
Simplify access to first person spectator state, remove IsFirstPersonSpectating and IsLocalPlayerSpectateAware
Check against the actual values instead (FirstPersonSpectatorMode.FirstPersonSpectatePlayer and LocalPlayer.EntitySpectateAware
Fixed vm getting orphaned when entering debug cam
Fixed event NRE when spectating in a demo
Fixed crossbow vm loaded state