From: Mario Date: Mon, 26 Dec 2016 12:30:09 +0000 (+1000) Subject: Add a debug option to weaponarena for all weapons (even mutator blocked ones) X-Git-Tag: xonotic-v0.8.2~326^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9fd5047b57bab962991923b2b0759fd6bc8c0246;p=xonotic%2Fxonotic-data.pk3dir.git Add a debug option to weaponarena for all weapons (even mutator blocked ones) --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index e88ef02ab..40352207a 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -566,6 +566,15 @@ void readplayerstartcvars() g_weaponarena_weapons |= (it.m_wepset); )); } + else if (s == "devall") + { + g_weaponarena = 1; + g_weaponarena_list = "All Weapons"; // TODO: report as more than just all weapons? + FOREACH(Weapons, it != WEP_Null, + { + g_weaponarena_weapons |= (it.m_wepset); + }); + } else if (s == "most") { g_weaponarena = 1;