33{
34 int totalweapons = 0, totalsettings = 0;
35 int wepcount = 1;
36 #define WEP_CONFIG_WRITETOFILE(str) write_String_To_File(wep_config_file, str, wep_config_alsoprint)
37
39 "// ************************************************************************************ //\n"
40 "// ** WARNING - MANUALLY EDIT THIS FILE WITH CAUTION ** //\n"
41 "// ** ** //\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"
46 "// ** ** //\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"
49 "// ** ** //\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"
57 "// ** ** //\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"
60 "// ** ** //\n"
61 "// ************************************************************************************ //\n"
62 "\n");
63
66 continue;
67
71
72
73 it.wr_config(it);
74
76 {
78 break;
79 }
80
81
83
84
86 "// {{{ #%d: %s%s\n",
87 wepcount,
88 it.m_name,
90 ));
94
95
97 totalweapons += 1;
99 wepcount += 1;
100 });
101 #undef WEP_CONFIG_WRITETOFILE
102
103
105 LOG_INFOF(
"Totals: %d weapons, %d settings", totalweapons, totalsettings);
106
107
111}
string config_queue[MAX_CONFIG_SETTINGS]
const int MAX_CONFIG_SETTINGS
#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)
float W_Config_Queue_Compare(int root, int child, entity pass)
const int WEP_FLAG_MUTATORBLOCKED
const int WEP_FLAG_SPECIALATTACK