Require hwid (#35331)

* Make cvar to require that the client has a modern hwid

* Ignore guests and don't disable cvar on dev

* Rename and add docs
This commit is contained in:
nikthechampiongr
2025-02-20 10:04:45 -08:00
committed by GitHub
parent 93021c4879
commit 09f75394be
4 changed files with 15 additions and 0 deletions

View File

@@ -183,6 +183,12 @@ public sealed partial class CCVars
public static readonly CVarDef<bool> BanHardwareIds =
CVarDef.Create("ban.hardware_ids", true, CVar.SERVERONLY);
/// <summary>
/// Determines if we'll reject connections from clients who don't have a modern hwid.
/// </summary>
public static readonly CVarDef<bool> RequireModernHardwareId =
CVarDef.Create("admin.require_modern_hwid", true, CVar.SERVERONLY);
/// <summary>
/// If true, players are allowed to connect to multiple game servers at once.
/// If false, they will be kicked from the first when connecting to another.