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
|
|
@ -69,3 +69,9 @@ EnableFakeBotFeatures = no
|
||||||
; sent to the server console. This replaces yb_logger_disable_logfile cvar.
|
; sent to the server console. This replaces yb_logger_disable_logfile cvar.
|
||||||
;
|
;
|
||||||
DisableLogFile = no
|
DisableLogFile = no
|
||||||
|
|
||||||
|
;
|
||||||
|
; Disables enforcement of player spawn limits during bot creation and quota management,
|
||||||
|
; allowing the use of custom spawn editors.
|
||||||
|
;
|
||||||
|
DisableSpawnControl = no
|
||||||
|
|
|
||||||
|
|
@ -730,7 +730,8 @@ void BotConfig::loadCustomConfig () {
|
||||||
{ "ZMInfectedTeam", "T" },
|
{ "ZMInfectedTeam", "T" },
|
||||||
{ "EnableFakeBotFeatures", "no" },
|
{ "EnableFakeBotFeatures", "no" },
|
||||||
{ "DisableLogFile", "no" },
|
{ "DisableLogFile", "no" },
|
||||||
{ "CheckConnectivityHost", "yapb.jeefo.net" }
|
{ "CheckConnectivityHost", "yapb.jeefo.net" },
|
||||||
|
{ "DisableSpawnControl", "no" }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
setDefaults ();
|
setDefaults ();
|
||||||
|
|
|
||||||
|
|
@ -448,6 +448,11 @@ void BotManager::maintainQuota () {
|
||||||
maxSpawnCount = maxClients + 1;
|
maxSpawnCount = maxClients + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable spawn control
|
||||||
|
if (conf.fetchCustom ("DisableSpawnControl").startsWith ("yes")) {
|
||||||
|
maxSpawnCount = game.maxClients () + 1;
|
||||||
|
}
|
||||||
|
|
||||||
// sent message only to console from here
|
// sent message only to console from here
|
||||||
ctrl.setFromConsole (true);
|
ctrl.setFromConsole (true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue