X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fconfig.qc;h=b53e25fde9c95cbdaddc1b987fd30fa16f8f8d16;hb=e30214cf338291f1709fb02ed5e84cad9321e156;hp=d2443f1670d360767cbc6721f6a2722d2764997c;hpb=e87123e5fba23f7a8907e6fbab241c5eec5be168;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/config.qc b/qcsrc/common/weapons/config.qc index d2443f167..b53e25fde 100644 --- a/qcsrc/common/weapons/config.qc +++ b/qcsrc/common/weapons/config.qc @@ -25,7 +25,10 @@ float W_Config_Queue_Compare(int root, int child, entity pass) void Dump_Weapon_Settings() { int totalweapons = 0, totalsettings = 0; + int wepcount = 1; FOREACH(Weapons, it != WEP_Null, { + if((it.spawnflags & WEP_FLAG_HIDDEN) && (it.spawnflags & WEP_FLAG_MUTATORBLOCKED) && !(it.spawnflags & WEP_FLAG_NORMAL)) + continue; // never include the attacks // step 1: clear the queue WEP_CONFIG_COUNT = 0; for (int x = 0; x <= MAX_CONFIG_SETTINGS; ++x) @@ -40,7 +43,7 @@ void Dump_Weapon_Settings() // step 4: write queue WEP_CONFIG_WRITETOFILE(sprintf( "// {{{ #%d: %s%s\n", - i, + wepcount, it.m_name, ((it.spawnflags & WEP_FLAG_MUTATORBLOCKED) ? " (MUTATOR WEAPON)" : "") )); @@ -51,6 +54,7 @@ void Dump_Weapon_Settings() LOG_INFOF("#%d: %s: %d settings...", i, it.m_name, WEP_CONFIG_COUNT); totalweapons += 1; totalsettings += WEP_CONFIG_COUNT; + wepcount += 1; }); // clear queue now that we're finished