mods: add more csdm cvars to check
This commit is contained in:
parent
05e10bae6e
commit
ed75a662c9
2 changed files with 3 additions and 2 deletions
|
|
@ -952,11 +952,12 @@ void Game::applyGameModes () {
|
|||
}
|
||||
|
||||
static ConVarRef csdm_active ("csdm_active");
|
||||
static ConVarRef csdm_version ("csdm_version");
|
||||
static ConVarRef redm_active ("redm_active");
|
||||
static ConVarRef mp_freeforall ("mp_freeforall");
|
||||
|
||||
// csdm is only with amxx and metamod
|
||||
if (csdm_active.exists () || redm_active.exists ()) {
|
||||
if (csdm_active.exists () || redm_active.exists () || csdm_version.exists ()) {
|
||||
if (csdm_active.value () > 0.0f || redm_active.value () > 0.0f) {
|
||||
m_gameFlags |= GameFlags::CSDM;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ void BotManager::maintainQuota () {
|
|||
auto maxSpawnCount = game.getSpawnCount (Team::Terrorist) + game.getSpawnCount (Team::CT) - humanPlayersInGame;
|
||||
|
||||
// if has some custom spawn points, max out spawn point counter
|
||||
if (desiredBotCount > botsInGame && hasCustomCSDMSpawnEntities ()) {
|
||||
if (desiredBotCount >= botsInGame && hasCustomCSDMSpawnEntities ()) {
|
||||
maxSpawnCount = game.maxClients () + 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue