Adds current panic bunker status to the server's /status API (#23330)

allows the server to advertise its current panic bunker status
This commit is contained in:
deathride58 2024-01-01 19:16:03 -05:00 committed by GitHub
parent 1a9274758c
commit 0ffd4e953e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ namespace Content.Server.GameTicking
jObject["round_id"] = _gameTicker.RoundId;
jObject["players"] = _playerManager.PlayerCount;
jObject["soft_max_players"] = _cfg.GetCVar(CCVars.SoftMaxPlayers);
jObject["panic_bunker"] = _cfg.GetCVar(CCVars.PanicBunkerEnabled);
jObject["run_level"] = (int) _runLevel;
if (_runLevel >= GameRunLevel.InRound)
{