Skip to content

krob64/krosshair

Repository files navigation

krosshair

A crosshair overlay for games on linux using vulkan.

max quake

Installation

make && make install

On nixos-unstable: Add krosshair (or clone and add (callPackage <local krosshair repo path>/derivation.nix { })) to packages and nixos-rebuild switch.

Usage

Simply start the your game with KROSSHAIR=1 set. When using steam, put KROSSHAIR=1 %command% into the launch options of your game. Additionally you can use the following variables to customize your crosshair.

  • KROSSHAIR_IMG=/path/to/crosshair-image.png (i've provided some crosshairs in here, copy them wherever you like)
  • KROSSHAIR_SCALE=1.0 (scaling the scrosshair may make it look blurry, i'd suggest to just create a bigger/smaller crosshair)

Can i get banned for this?

I don't know, use at your own risk. I've only used it in Quake Champions and STRAFTAT, both of which don't really have an anticheat.

Setting up requirements

Needs Vulkan libs to build. All requirements can be set up with `nix-shell' when nix is installed.

Issues

As of now, the overlay leaks a bit of memory everytime you alt-tab out of/into the game, as well as everytime the window is being resized and upon resolution changes. It's not a big leak and shouldn't cause any problems, but it's still worth noting. I've tried fixing it multiple times but have always hit a dead-end. If someone more experienced with vulkan wants to help, take a look at this issue. I know it's a bit of a mess, this whole project is based on a morally questionable apex legends project which i'm unsure if i should link to it here, coupled with me jumping into it right after completing the vulkan tutorial.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages