Skip to main content

Counter-Strike 2

To make LHM work correctly with CS2 you need to run the game with “Run Game” button.

Untitled

If you want to use Scout AI or Killfeed, you first need to install Workshop Tools for CS2. You can find them by right clicking Counter-Strike 2 in your Steam library, going to Settings, and then to DLC tab.

Untitled

Untitled

Counter-Strike configuration

To make LHM work correctly with Counter-Strike you need to make sure in settings that:

  • configs are loaded in (if not, click on the button next to the config status in Settings)

Untitled

  • gamestate integration is loaded in (if not, click on the button next to the GSI status in Settings)

Untitled

These two steps alone should be sufficient for Counter-Strike to work with LHM.

In case any or both (configs and gamestate integration) display error about not finding the game's path, you need to install the files manually. To do it, find "Downloads" row, and download GSI Config and HUD Configs. Extract .cfg files from the zip, and put every file in steamapps\common\Counter-Strike Global Offensive\csgo\cfg.

After those steps, Counter-Strike should send game data to LHM at all times. Sometimes default port (1349) is already being used, so LHM will fall back to free port above 1300. If that happens, you need to re-add gsi and config files.

Additionally, you can set up Steam API Key in settings. It will only be used to download Steam avatars, if players will not have their own in the database (remember to hit Save button).

CS HUDs configuration

To hide default HUD, you need to go to the HUDs tab, and set Radar and Killfeed options accordingly - if your HUD is using them, switch them on. It will generate a console command for CS to hide the default HUD and radar / killfeed. You don't need to execute this command on your own though. It will be enough if you just click Run Game button after specifying the config.

Untitled

No HLAE

Sometimes Windows Defender (or other antivirus) might flag HLAE as a virus. It happens because HLAE is technically a "cheat". It is not used however to gain an advantage, but to improve the broadcast quality.

warning

The steps might differ if you are using third-party antivirus software (other than Windows Defender). In that case, consult their guides or customer support on adding exclusions to their software.

Whenever you get this modal, proceed with those steps:

  1. Go to the Windows Defender settings
  2. Navigate to Virus & Threat Protection, then go to Protection History in the Current Threats section
  3. There should be entry for HLAE, with path looking similiar to this: C:\Users\USERNAME\AppData\Roaming\hud-manager\hlae\. If so, check if there is any dropdown to the right of that entry. If there is, try to select "Restore" option.
  4. If there is no "Restore" action available, navigate back to Virus & Threat Protection, then go to Manage Settings in the Virus & Threat protection settings
  5. Scroll down to Exlusions section and click Add or remove exclusions
  6. In the Exclusions panel, add two Folders the exclusion list:
%appdata%\hud-manager\hlae
%appdata%\hud-manager\archives
  1. Save, close Windows Defender settings, restart LHM and wait a few seconds before clicking on Run Game button, to let HLAE update itself.

Updating CS:GO to CS2

LHM takes care of most of the compatibility issues that came with CS2 update, however there are still some differences in the ways data is distributed. To make sure that your HUD is fully compatible with the new game, you need to update two configuration points:

  1. Update public/hud.json: It needs to have "game" set to "cs2"
  2. Update connection entry: Usually located in your src/App.tsx, there should be socket register call:
socket.emit("register", name, isDev, "csgo", isInWindow ? "IPC" : "DEFAULT");

Change the "csgo" string inside it to "cs2":

socket.emit("register", name, isDev, "cs2", isInWindow ? "IPC" : "DEFAULT");