]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a debug option to weaponarena for all weapons (even mutator blocked ones)
authorMario <mario@smbclan.net>
Mon, 26 Dec 2016 12:30:09 +0000 (22:30 +1000)
committerMario <mario@smbclan.net>
Mon, 26 Dec 2016 12:30:09 +0000 (22:30 +1000)
qcsrc/server/miscfunctions.qc

index e88ef02abb43ecd506693d2a964a03d26f195b7c..40352207a2492e77964d8c83d187464bf18f0e8c 100644 (file)
@@ -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;