BeepIsla / CSGO-MajorVotes

Enable Valve Matchmaking & Valve Major functionality in your games
MIT License
32 stars 4 forks source link

CSGO MajorVotes

Enable Valve Matchmaking & Valve Major functionality in your games.

For Tournaments/Majors at least one spectator is ALWAYS needed. Only they can load backups, unpause the match, or start the warmup countdown.

You may have to add -maxplayers_override to your command line if you require more slots on your server than the default.

You may need to adjust your server config as some convars are required to allow spectators to start a vote and to have infinite warmup at the beginning of the match.

Requirements

Preview

Matchmaking Tournament

Config

Place your config in addons/sourcemod/configs/match.vdf. A full example config can be found here. If a client joins the server and they are not in this list the server will automatically refuse connection. Run sm_match_reload to setup the match, you will likely need to execute this from the server console directly.

Warning: The command will reload the current map and every client not in the match.vdf will be kicked out.

Account ID

Use a website like SteamID.io and convert your Steam Profile link to their SteamID. Go to the steamID3 and copy out the last number.

Example: [U:1:25341944] is the SteamID3, 25341944 is the account ID.

Credits

Thanks to the CSGO Source Code leak for letting me figure this out