mgr: allow to disable spawn count checks (ref #754)

This commit is contained in:
jeefo 2025-12-20 16:00:32 +03:00
commit 4015f8de06
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 13 additions and 1 deletions

View file

@ -730,7 +730,8 @@ void BotConfig::loadCustomConfig () {
{ "ZMInfectedTeam", "T" },
{ "EnableFakeBotFeatures", "no" },
{ "DisableLogFile", "no" },
{ "CheckConnectivityHost", "yapb.jeefo.net" }
{ "CheckConnectivityHost", "yapb.jeefo.net" },
{ "DisableSpawnControl", "no" }
};
};
setDefaults ();

View file

@ -448,6 +448,11 @@ void BotManager::maintainQuota () {
maxSpawnCount = maxClients + 1;
}
// disable spawn control
if (conf.fetchCustom ("DisableSpawnControl").startsWith ("yes")) {
maxSpawnCount = game.maxClients () + 1;
}
// sent message only to console from here
ctrl.setFromConsole (true);