Skip to content

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

Merged
Velaron merged 4 commits into
Velaron:mainfrom
GLoOoccK:OBS_IN_EYE
Jun 29, 2026
Merged

cl_dll: hud: money, timer: fix Draw when spectating in first person#370
Velaron merged 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

@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

@GLoOoccK GLoOoccK mentioned this pull request Jun 28, 2026
@Velaron Velaron merged commit 934a366 into Velaron:main Jun 29, 2026
9 checks passed
@GLoOoccK GLoOoccK deleted the OBS_IN_EYE branch June 29, 2026 11:04
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.

3 participants