Skip to content

Conversation

@AdamTadeusz
Copy link
Contributor

@AdamTadeusz AdamTadeusz commented Jan 14, 2026

Description

This also fixes a problem where the glows don't update when the game mode changes. a RecvProxy on the m_nGameTypeSelected variable doesn't work, event messages probably could work but they arrive before the neorules data (including the selected game mode) arrives and anyway the developer wiki says to not run entity logic there and to use PostDataUpdate instead, but the comment in the source code describing PostdataUpdate suggests OnDataChanged should be used instead, except the neorules object doesn't extend C_BaseEntity, probably why the game rules proxy exists.

We could probably detect the start of a new round in a similar fashion to how we detect the game mode change here to do stuff that should be done to every player on spawn client side, although a user message could work too not sure which one would be the best way to do it

@AdamTadeusz AdamTadeusz requested a review from a team January 14, 2026 11:49
Copy link
Contributor

@sunzenshen sunzenshen left a comment

Choose a reason for hiding this comment

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

LGTM:

dm-disable-team-xrays.mp4

(Also checked that glows still happen in CTG mode at least.)

@sunzenshen sunzenshen requested a review from a team January 18, 2026 06:55
@Rainyan Rainyan linked an issue Jan 20, 2026 that may be closed by this pull request
2 tasks
@AdamTadeusz AdamTadeusz merged commit e788672 into NeotokyoRebuild:master Jan 21, 2026
7 checks passed
@AdamTadeusz AdamTadeusz deleted the 306_dontGlowDMPlayers branch January 21, 2026 16:58
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.

Xray is enabled in non-teamplay modes, DM

3 participants