Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectator First Person offset issue #165

Open
gustavomassa opened this issue Apr 17, 2022 · 3 comments
Open

Spectator First Person offset issue #165

gustavomassa opened this issue Apr 17, 2022 · 3 comments
Labels

Comments

@gustavomassa
Copy link

gustavomassa commented Apr 17, 2022

Hello

I'm having some kind of spectator first-person mode offset on the -Y-axis, looks like the player is always ducked, you can see on the video when he uses the gauss, where the crosshair is compared to where it hits

Half.Life.2022.04.17.-.00.51.54.01_Trim_Trim_Trim.mp4
@YaLTeR YaLTeR added the bug label Apr 17, 2022
@chinese-soup
Copy link
Contributor

chinese-soup commented Apr 17, 2022

toggle the cl_viewheight_mode property to 0/1 (depending on what it currently is)

@gustavomassa
Copy link
Author

@chinese-soup it was set to 1, setting to 0 fixes the issue. Can we detect when it's in an older HLSDK server, if not just ignore it?

@gustavomassa
Copy link
Author

Is there a way to detect when the HLSDK is the latest version and this fix should be applied? Adding this version check here would fix the issue

if ( gHUD.m_pCvarViewheightMode->value != 0.0f && ( gHUD.m_Spectator.m_pip->value == INSET_IN_EYE || g_iUser1 == OBS_IN_EYE ) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants