Skip to content

Uses crosshair sharecode to render crosshair as overlay

Notifications You must be signed in to change notification settings

Chungmire/CS2-Crosshair-Overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CS2-Crosshair-Overlay

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.

Use cases

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.

Usage

  1. Download from Releases.
  2. Copy crosshair sharecode from game.
  3. Open config.txt and paste the sharecode after Sharecode=
  4. (Optional) Change toggle key. Default is Insert. Keycodes found here
  5. In CS2 video settings, set your Display Mode to Windowed or Fullscreen-Windowed.
  6. Run Crosshair.exe

Limitations & Future Work

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.

  1. 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.
  2. 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.
  3. Only static crosshairs are supported.
  4. Only common and reasonable length, gap, etc. values are supported. You shouldn't be running into issues with this.
  5. Fullscreen is not supported and likely cannot be supported given the invasive route needed to accomplish that.
  6. Whether or not to output crosshair.png should be an option in the config.
  7. Whether or not the program launches with a window in the taskbar should be an option in the config
  8. Program needs an icon.
  9. There is plenty of room for prettying up the code.

About

Uses crosshair sharecode to render crosshair as overlay

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages