34 int totalweapons = 0, totalsettings = 0;
36 #define WEP_CONFIG_WRITETOFILE(str) write_String_To_File(wep_config_file, str, wep_config_alsoprint)
39 "// ************************************************************************************ //\n"
40 "// ** WARNING - MANUALLY EDIT THIS FILE WITH CAUTION ** //\n"
42 "// ** This file can be automatically generated with the command 'dumpweapons'. ** //\n"
43 "// ** This is useful to create custom weapon balance configs, after changing some ** //\n"
44 "// ** weapon balance cvars in-game. ** //\n"
45 "// ** If you are creating a custom weapon balance config file, delete this. ** //\n"
47 "// ** If you are just editing the default weapon balance (bal-wep-xonotic.cfg), ** //\n"
48 "// ** please keep this comment as it contains helpful documentation. ** //\n"
50 "// ** These are the default weapon-related balance config settings, categorized by ** //\n"
51 "// ** weapon. ** //\n"
52 "// ** Other default settings are in balance-xonotic.cfg, which executes this file. ** //\n"
53 "// ** Other wep balance configs like bal-wep-nexuiz25.cfg first execute this, then ** //\n"
54 "// ** override some settings. ** //\n"
55 "// ** Therefore any changes made to the default balance here will affect all ** //\n"
56 "// ** bal-wep-*.cfg files, unless you override it in such files. ** //\n"
58 "// ** If you add a new weapon cvar, remove a weapon cvar, or rename a weapon cvar, ** //\n"
59 "// ** please regenerate this file with that command, or manually add it here. ** //\n"
61 "// ************************************************************************************ //\n"
101 #undef WEP_CONFIG_WRITETOFILE
105 LOG_INFOF(
"Totals: %d weapons, %d settings", totalweapons, totalsettings);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
string config_queue[MAX_CONFIG_SETTINGS]
const int MAX_CONFIG_SETTINGS
#define pass(name, colormin, colormax)
#define FOREACH(list, cond, body)
ERASEABLE void heapsort(int n, swapfunc_t swap, comparefunc_t cmp, entity pass)
void W_Config_Queue_Swap(int root, int child, entity pass)
#define WEP_CONFIG_WRITETOFILE(str)
void Dump_Weapon_Settings()
void W_Config_Queue(string setting)
float W_Config_Queue_Compare(int root, int child, entity pass)
const int WEP_FLAG_MUTATORBLOCKED
const int WEP_FLAG_SPECIALATTACK