Skip to content

Fixed overhead icons issue#1861

Merged
TimGoll merged 1 commit intoTTT-2:masterfrom
mexikoedi:fix-modify-overhead-icon
Feb 28, 2026
Merged

Fixed overhead icons issue#1861
TimGoll merged 1 commit intoTTT-2:masterfrom
mexikoedi:fix-modify-overhead-icon

Conversation

@mexikoedi
Copy link
Contributor

While testing TTT-2/ttt2-wep_identity_disguiser#15 I noticed an issue with overhead icons.
For example if someone disguised himself as a Detective he wouldn't have an overhead icon.

The Identity Disguiser uses TTT2ModifyOverheadIcon and correctly returns shouldDraw = true with valid material/color.
However the icon was still not rendered because shouldDrawDefault was false and the check in cl_targetid.lua filtered it out.

I adjusted the condition so that shouldDraw = true is respected even when shouldDrawDefault is false.

After I tested it again the disguised players now show overhead icons correctly and the default behavior remains the same (Detectives, teammates, ...).

Copy link
Member

@TimGoll TimGoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@TimGoll TimGoll merged commit 2559440 into TTT-2:master Feb 28, 2026
4 checks passed
@mexikoedi mexikoedi deleted the fix-modify-overhead-icon branch February 28, 2026 10:45
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