Skip to content

Commit

Permalink
#59: add cvars
Browse files Browse the repository at this point in the history
  • Loading branch information
drweissbrot committed Sep 30, 2023
1 parent 0c808ec commit 01f7064
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
40 changes: 40 additions & 0 deletions docs/cvars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Helpful CS Console Commands

Some of these commands for the Counter-Strike in-game console may be helpful in some situations.

## cl_draw_only_deathnotices
This command will hide the in-game HUD, everything except the kill feed.
The HUD does not include a kill feed (because kills are not provided by Game State Integration), so you'll need to use the in-game HUD's kill feed.

Example:
```
cl_draw_only_deathnotices true
```

## safezonex, safezoney
These commands will move the in-game HUD inwards a bit.
safezonex will make the kill feed line up vertically with the `Players Alive` element and the right sidebar.
safezoney will make the kill feed line up horizontally with the `Players Alive` element.

Example (for 16:9 aspect ratios):
```
safezonex 0.988
safezoney 0.98
```

## cl_spec_show_bindings
This command will hide the little text at the bottom of the screen that tells you what button to press to toggle the X-Ray, etc.

Example:
```
cl_spec_show_bindings false
```

## fps_max
In case of performance issues, e.g. choppy animations in the HUD.
Limiting the game's FPS can free up some GPU resources for the HUD.

Example:
```
fps_max 144
```
5 changes: 2 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ The easiest way is to use the pre-packaged binaries, but other options will be a
1. Now run `csgo-hud-win.exe` or `csgo-hud-linux`.
1. Open http://localhost:31982/hud in your favorite browser, and you should see the HUD.

There's also the config page available at http://localhost:31982/config, and a separate radar for observing at http://localhost:31982/radar.

<!-- TODO cs:go config (safezones, cl_draw_only_deathnotices) -->
There's also the config page available at http://localhost:31982/config, and a separate radar for observing at http://localhost:31982/radar.
There are also [some console commands you may want to use](docs/cvars.md).

Depending on how you actually want to use the HUD, you've now got two options:

Expand Down

0 comments on commit 01f7064

Please sign in to comment.