]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Mark mutator weapons in the config output
authorSamual Lenks <samual@xonotic.org>
Tue, 10 Dec 2013 21:58:26 +0000 (16:58 -0500)
committerSamual Lenks <samual@xonotic.org>
Tue, 10 Dec 2013 21:58:26 +0000 (16:58 -0500)
qcsrc/common/weapons/config.qc

index bd9cabd107165acf23e8da7d1f616f7b1ffaf9e6..d447b182596a3aad2aba692b5021b4d31991e689 100644 (file)
@@ -31,7 +31,12 @@ 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,
+                       W_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")