mgr: allow to disable spawn count checks (ref #754)
This commit is contained in:
parent
113cb5e916
commit
4015f8de06
3 changed files with 13 additions and 1 deletions
|
|
@ -730,7 +730,8 @@ void BotConfig::loadCustomConfig () {
|
|||
{ "ZMInfectedTeam", "T" },
|
||||
{ "EnableFakeBotFeatures", "no" },
|
||||
{ "DisableLogFile", "no" },
|
||||
{ "CheckConnectivityHost", "yapb.jeefo.net" }
|
||||
{ "CheckConnectivityHost", "yapb.jeefo.net" },
|
||||
{ "DisableSpawnControl", "no" }
|
||||
};
|
||||
};
|
||||
setDefaults ();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue