Xonotic
config.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef SVQC
4 // ==========================
5 // Balance Config Generator
6 // ==========================
7 
8 void Dump_Turret_Settings();
9 float tur_config_file;
10 float tur_config_alsoprint;
11 
12 float TUR_CONFIG_COUNT;
13 void T_Config_Queue(string setting);
14 
15 #define TUR_CONFIG_WRITE_CVARS(turname, name, T) TUR_CONFIG_WRITE_PROPS_##T(turname, name)
16 
17 #define TUR_CONFIG_WRITE_PROPS_string(turname, name) {\
18  T_Config_Queue( \
19  sprintf("set g_turrets_unit_%s_%s \"%s\"\n", #turname, #name, \
20  cvar_string(sprintf("g_turrets_unit_%s_%s", #turname, #name)))); \
21 }
22 
23 #define TUR_CONFIG_WRITE_PROPS_float(turname, name) {\
24  T_Config_Queue( \
25  sprintf("set g_turrets_unit_%s_%s %g\n", #turname, #name, \
26  cvar(sprintf("g_turrets_unit_%s_%s", #turname, #name)))); \
27 }
28 
29 #endif