Skip to content

Conversation

@AdamTadeusz
Copy link
Contributor

Description

The value of g_SmokeFogOverlayAlpha is calculated somewhere in the engine and prevents the xray overlay from working, g_SmokeFogOverlayThermalOverride isn't enough to fix it since we don't have access to that code so have to set the value of g_SmokeFogOverlayAlpha to 0 to get it working again.

To test this start a match with bots, spawn as a support, throw a smoke, kill yourself, go into free roam spectate mode and fly into the smoke, enable xray, and look towards the bots.

Will still draw the smoke fog overlay in the case where we are on a team and mp_forcecamera is set to anything other than OBS_ALLOW_ALL

@sunzenshen sunzenshen requested a review from a team August 19, 2025 03:54
@sunzenshen sunzenshen requested a review from a team August 19, 2025 05:21
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.

To test this start a match with bots, spawn as a support, throw a smoke, kill yourself, go into free roam spectate mode and fly into the smoke, enable xray, and look towards the bots.

Tried this out and works as expected.

@AdamTadeusz AdamTadeusz merged commit ed257c5 into NeotokyoRebuild:master Aug 20, 2025
7 checks passed
@AdamTadeusz AdamTadeusz deleted the 265_lowerSmokeFogOverlayAlphaWhenXrayingSoCanXrayThroughSmokes branch August 20, 2025 09:08
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