]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qc
Include hmg and rpc in the weapon priority lists
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qc
index dc60b95c3d7e0787bf475481b03d7b46a8af4213..e0b501c258ad0453c78c1d8b67b61df392d4a162 100644 (file)
@@ -397,6 +397,9 @@ string fixPriorityList(string order, float from, float to, float subtract, float
                n = tokenize_console(neworder);
                for(w = to; w >= from; --w)
                {
                n = tokenize_console(neworder);
                for(w = to; w >= from; --w)
                {
+                       float wflags = Weapons_from(w).spawnflags;
+                       if(wflags & WEP_FLAG_HIDDEN && wflags & WEP_FLAG_MUTATORBLOCKED && !(wflags & WEP_FLAG_NORMAL))
+                               continue;
                        for(i = 0; i < n; ++i)
                                if(stof(argv(i)) == w)
                                        break;
                        for(i = 0; i < n; ++i)
                                if(stof(argv(i)) == w)
                                        break;