mods: add more csdm cvars to check

This commit is contained in:
jeefo 2024-01-21 16:21:01 +03:00
commit ed75a662c9
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 3 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}