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)
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;
}