]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/config.qc
Fix HMG
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / config.qc
index e3dfe6f5a8e8dbdc8048ac7c85c329a0af42a50b..2537022f6ac55bba9cff6d12570e68ea0f12b3f9 100644 (file)
@@ -12,20 +12,6 @@ void W_Config_Queue_Swap(float root, float child, entity pass)
 float W_Config_Queue_Compare(float root, float child, entity pass)
 {
        return strcmp(wep_config_queue[root], wep_config_queue[child]);
-       
-       #if 0
-       float i, r, c;
-       for(i = 1; i <= 100; ++i)
-       {
-               r = str2chr(wep_config_queue[root], i);
-               c = str2chr(wep_config_queue[child], i);
-               if(r == c) { continue; }
-               else if(c > r) { return -1; }
-               else { return 1; }
-       }
-
-       return 0;
-       #endif
 }
 
 void Dump_Weapon_Settings(void)
@@ -45,12 +31,17 @@ void Dump_Weapon_Settings(void)
                heapsort(WEP_CONFIG_COUNT, W_Config_Queue_Swap, W_Config_Queue_Compare, world);
                
                // step 4: write queue
-               WEP_CONFIG_WRITETOFILE(sprintf("// {{{ #%d: %s\n", i, W_Name(i)))
+               WEP_CONFIG_WRITETOFILE(sprintf(
+                       "// {{{ #%d: %s%s\n",
+                       i,
+                       WEP_NAME(i),
+                       (((get_weaponinfo(i)).spawnflags & WEP_FLAG_MUTATORBLOCKED) ? " (MUTATOR WEAPON)" : "")
+               ))
                for(x = 0; x <= WEP_CONFIG_COUNT; ++x) { WEP_CONFIG_WRITETOFILE(wep_config_queue[x]) }
                WEP_CONFIG_WRITETOFILE("// }}}\n")
 
                // step 5: debug info
-               print(sprintf("#%d: %s: %d settings...\n", i, W_Name(i), WEP_CONFIG_COUNT));
+               print(sprintf("#%d: %s: %d settings...\n", i, WEP_NAME(i), WEP_CONFIG_COUNT));
                totalsettings += WEP_CONFIG_COUNT;
        }