Hide debug coordinates from non-admins (#17804)

* Hide debug coordinates for non-admins

* Added server cvar
This commit is contained in:
Errant
2023-07-03 21:31:52 +00:00
committed by GitHub
parent e7507fee50
commit 24ac92ff9a
2 changed files with 31 additions and 0 deletions

View File

@@ -285,6 +285,12 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<bool> LocalStatusIconsEnabled =
CVarDef.Create("game.local_status_icons_enabled", true, CVar.CLIENTONLY);
/// <summary>
/// Whether or not coordinates on the Debug overlay should only be available to admins.
/// </summary>
public static readonly CVarDef<bool> DebugCoordinatesAdminOnly =
CVarDef.Create("game.debug_coordinates_admin_only", false, CVar.SERVER | CVar.REPLICATED);
#if EXCEPTION_TOLERANCE
/// <summary>
/// Amount of times round start must fail before the server is shut down.