How to turn off X-Ray in a CS2 demo

Hide player outlines during CS2 demo playback with spec_show_xray and restore them to review positions.

Turn off outlines in the demo

Open the match replay and switch to the player you want to review. Enter spec_show_xray 0 in the developer console. Return to the replay and find a moment when another player is behind a wall. Their outline should disappear.

When this is useful

Use the first-person view with outlines off to review what the player could see at the moment of contact. Turn outlines back on to review the other team's positions. Radar, audio and the spectator interface can still provide extra information.

Restore X-Ray

Enter spec_show_xray 1 and test again at the same point. This setting applies to spectating and demo playback.

Sources

Find your next skin