From c235e77a8236141d13bf5587636b4dae9b6e68cc Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 30 Sep 2022 19:49:33 +1000 Subject: [PATCH] Adjust the map size diameter needed for some gamemodes to 3250, fixes medium sized maps generating with support for Duel --- qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh | 2 +- qcsrc/common/gamemodes/gamemode/duel/duel.qh | 2 +- qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh | 2 +- qcsrc/common/gamemodes/gamemode/tdm/tdm.qh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh b/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh index 3b3dace64..ad5909eb2 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh +++ b/qcsrc/common/gamemodes/gamemode/clanarena/clanarena.qh @@ -26,7 +26,7 @@ CLASS(ClanArena, Gametype) } METHOD(ClanArena, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - if(spawnpoints >= 8 && diameter > 4096) + if(spawnpoints >= 8 && diameter > 3250) return true; return false; } diff --git a/qcsrc/common/gamemodes/gamemode/duel/duel.qh b/qcsrc/common/gamemodes/gamemode/duel/duel.qh index 298e62e00..eb0e948b8 100644 --- a/qcsrc/common/gamemodes/gamemode/duel/duel.qh +++ b/qcsrc/common/gamemodes/gamemode/duel/duel.qh @@ -10,7 +10,7 @@ CLASS(Duel, Gametype) } METHOD(Duel, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - return (diameter < 16384); + return (diameter < 3250); } METHOD(Duel, m_isForcedSupported, bool(Gametype this)) { diff --git a/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh b/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh index 61d3b91e9..9620ba835 100644 --- a/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh +++ b/qcsrc/common/gamemodes/gamemode/freezetag/freezetag.qh @@ -29,7 +29,7 @@ CLASS(FreezeTag, Gametype) } METHOD(FreezeTag, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - if(spawnpoints >= 8 && diameter > 4096) + if(spawnpoints >= 8 && diameter > 3250) return true; return false; } diff --git a/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh b/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh index d0e23940a..eeee581f4 100644 --- a/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh +++ b/qcsrc/common/gamemodes/gamemode/tdm/tdm.qh @@ -23,7 +23,7 @@ CLASS(TeamDeathmatch, Gametype) } METHOD(TeamDeathmatch, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter)) { - if(spawnpoints >= 8 && diameter > 4096) + if(spawnpoints >= 8 && diameter > 3250) return true; return false; } -- 2.39.2