There were no existing projects which took a crosshair sharecode to render the corresponding CSGO/CS2 crosshair as an overlay over the entire screen, so I embarked upon this lil C# project. It should go without saying that this is not VAC detected nor is it VAC detectable as it does not interact with the game process in any way.
Most obviously, having your crosshair always enabled is helpful in scenarios when the game otherwise disables the crosshair, e.g. when using an AWP or SSG 08.
Additionally, this assists with the efficacy of object detection aimbot programs which grab images from the game's video stream rather than from the entire desktop. Without a crosshair taking up valuable pixels, the confidence rate increases when the crosshair would otherwise be over an enemy.
To account for this, the program outputs a crosshair.png
file in the directory it is placed in for those of you who are disabling your crosshair in-game while using this but still want to add it in post when editing a game capture recording.
- Download from Releases.
- Copy crosshair sharecode from game.
- Open config.txt and paste the sharecode after
Sharecode=
- (Optional) Change toggle key. Default is Insert. Keycodes found here
- In CS2 video settings, set your Display Mode to Windowed or Fullscreen-Windowed.
- Run Crosshair.exe
Note: While I won't be working on this project personally since it works & I have other work to do, I will gladly review and accept pull requests.
- Renders only the crosshair as the game would at 1920x1080 resolution as the scaling factor for other resolutions is not implemented. You can play at any resolution.
- The RGB color displayed is technically accurate, however it does not always match with what the game displays. The values "Red" "Green" "Blue" seem to have different weights in-game resulting in colors you wouldn't expect (ex. blue when it should be green). To get around this you can just adjust the values and try new sharecodes until it's to your liking.
- Only static crosshairs are supported.
- Only common and reasonable length, gap, etc. values are supported. You shouldn't be running into issues with this.
- Fullscreen is not supported and likely cannot be supported given the invasive route needed to accomplish that.
- Whether or not to output crosshair.png should be an option in the config.
- Whether or not the program launches with a window in the taskbar should be an option in the config
- Program needs an icon.
- There is plenty of room for prettying up the code.