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