]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/config.qh
Make uses of R_BeginPolygon explicit as to whether they're 2D or 3D
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / config.qh
index ad9c3846f9a239bd4a9f9eb75609732ca83a2a49..06e66fa275bc66511c34b640f1a75390800fe1f1 100644 (file)
@@ -1,12 +1,29 @@
 #pragma once
 
 #ifdef SVQC
+// ==========================
+//  Balance Config Generator
+// ==========================
 
 void Dump_Turret_Settings();
 float tur_config_file;
 float tur_config_alsoprint;
 
 float TUR_CONFIG_COUNT;
+void T_Config_Queue(string setting);
 
+#define TUR_CONFIG_WRITE_CVARS(turname, name, T) TUR_CONFIG_WRITE_PROPS_##T(turname, name)
+
+#define TUR_CONFIG_WRITE_PROPS_string(turname, name) {\
+       T_Config_Queue( \
+               sprintf("set g_turrets_unit_%s_%s \"%s\"\n", #turname, #name, \
+               cvar_string(sprintf("g_turrets_unit_%s_%s", #turname, #name)))); \
+}
+
+#define TUR_CONFIG_WRITE_PROPS_float(turname, name) {\
+       T_Config_Queue( \
+               sprintf("set g_turrets_unit_%s_%s %g\n", #turname, #name, \
+               cvar(sprintf("g_turrets_unit_%s_%s", #turname, #name)))); \
+}
 
 #endif