Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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_Weapon_Settings
();
9
int
wep_config_file
;
10
bool
wep_config_alsoprint
;
11
12
int
WEP_CONFIG_COUNT
;
13
void
W_Config_Queue
(
string
setting);
14
15
#define WEP_CONFIG_WRITE_CVARS(wepname, name, T) WEP_CONFIG_WRITE_PROPS_##T(wepname, name)
16
17
#define WEP_CONFIG_WRITE_PROPS_string(wepname, name) {\
18
W_Config_Queue( \
19
sprintf("set g_balance_%s_%s \"%s\"\n", #wepname, #name, \
20
cvar_string(sprintf("g_balance_%s_%s", #wepname, #name)))); \
21
}
22
23
#define WEP_CONFIG_WRITE_PROPS_float(wepname, name) {\
24
W_Config_Queue( \
25
sprintf("set g_balance_%s_%s %g\n", #wepname, #name, \
26
cvar(sprintf("g_balance_%s_%s", #wepname, #name)))); \
27
}
28
29
#endif
wep_config_alsoprint
bool wep_config_alsoprint
Definition
config.qh:10
Dump_Weapon_Settings
void Dump_Weapon_Settings()
Definition
config.qc:32
WEP_CONFIG_COUNT
int WEP_CONFIG_COUNT
Definition
config.qh:12
W_Config_Queue
void W_Config_Queue(string setting)
Definition
config.qc:14
wep_config_file
int wep_config_file
Definition
config.qh:9
common
weapons
config.qh
Generated on
for Xonotic QuakeC by
1.14.0