16 if (WEP_CONFIG_COUNT <= MAX_CONFIG_SETTINGS - 1)
17 config_queue[WEP_CONFIG_COUNT++] = setting;
22 string oldroot = config_queue[root];
23 config_queue[root] = config_queue[child];
24 config_queue[child] = oldroot;
29 return strcmp(config_queue[root], config_queue[child]);
34 int totalweapons = 0, totalsettings = 0;
36 #define WEP_CONFIG_WRITETOFILE(str) write_String_To_File(wep_config_file, str, wep_config_alsoprint) 37 FOREACH(Weapons, it != WEP_Null, {
42 for (
int x = 0; x < MAX_CONFIG_SETTINGS; ++x)
48 if (WEP_CONFIG_COUNT > MAX_CONFIG_SETTINGS - 1)
50 LOG_INFOF(
"\n^1Dumping aborted^7: hit MAX_CONFIG_SETTINGS (%d) limit\n\n", MAX_CONFIG_SETTINGS);
64 for (
int x = 0; x < WEP_CONFIG_COUNT; ++x)
69 LOG_INFOF(
"#%d: %s: %d settings...", i, it.m_name, WEP_CONFIG_COUNT);
71 totalsettings += WEP_CONFIG_COUNT;
74 #undef WEP_CONFIG_WRITETOFILE 77 if (WEP_CONFIG_COUNT <= MAX_CONFIG_SETTINGS - 1)
78 LOG_INFOF(
"Totals: %d weapons, %d settings", totalweapons, totalsettings);
82 for (
int x = 0; x < MAX_CONFIG_SETTINGS; ++x)
float W_Config_Queue_Compare(int root, int child, entity pass)
#define WEP_CONFIG_WRITETOFILE(str)
ERASEABLE void heapsort(int n, swapfunc_t swap, comparefunc_t cmp, entity pass)
void W_Config_Queue(string setting)
void W_Config_Queue_Swap(int root, int child, entity pass)
for(int slot=0;slot< MAX_WEAPONSLOTS;++slot)
const int WEP_FLAG_SPECIALATTACK
const int WEP_FLAG_MUTATORBLOCKED
#define pass(name, colormin, colormax)
#define FOREACH(list, cond, body)
void Dump_Weapon_Settings()