Skip to content

vision modes in sourcetv#1770

Open
AdamTadeusz wants to merge 1 commit intoNeotokyoRebuild:masterfrom
AdamTadeusz:323_sourceTVVisionModes
Open

vision modes in sourcetv#1770
AdamTadeusz wants to merge 1 commit intoNeotokyoRebuild:masterfrom
AdamTadeusz:323_sourceTVVisionModes

Conversation

@AdamTadeusz
Copy link
Contributor

@AdamTadeusz AdamTadeusz commented Mar 2, 2026

Description

Watching players in first person mode inside a sourcetv demo would not draw the vision screenspace shader overlay. This is because m_iObserverMode is not updated the same way. This is probably intentional, GetObserverMode calls isHLTV() and returns the correct observer mode in sourcetv demos, so the right solution is to just call that function instead of reading m_iObserverMode

Toolchain

  • Windows MSVC VS2022

Linked Issues

@AdamTadeusz AdamTadeusz requested a review from a team March 2, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vision mode overlays are not shown when spectating in first person in a SourceTV demo

1 participant