Skip to content

cl_dll: hud: money, timer: fix Draw when spectating in first person#370

Open
GLoOoccK wants to merge 4 commits into
Velaron:mainfrom
GLoOoccK:OBS_IN_EYE
Open

cl_dll: hud: money, timer: fix Draw when spectating in first person#370
GLoOoccK wants to merge 4 commits into
Velaron:mainfrom
GLoOoccK:OBS_IN_EYE

Conversation

@GLoOoccK

@GLoOoccK GLoOoccK commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

When spectating a player in first person (OBS_IN_EYE), the money and timer HUD elements remain visible, which should not happen.

Reference:

https://github.com/Velaron/cs16-client/blob/main/cl_dll/flashlight.cpp#L96-L97

@GLoOoccK

GLoOoccK commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

cc @a1batross @Vladislav4KZ

@Vladislav4KZ

Copy link
Copy Markdown
Contributor

This did not fix the issue where HUD elements appear in spectator mode when changing the crosshair through this plugin:
https://forums.alliedmods.net/showthread.php?p=2503412 https://forums.alliedmods.net/showpost.php?p=2742394&postcount=19

@GLoOoccK

GLoOoccK commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

The issue occurs even without the plugin. Elements appear when switching to first-person view, and this PR resolves the problem. The issue was introduced in PRs #367 and #368. Previously, HIDEHUD_HEALTH hid these elements in first-person view.

image

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.

2 participants