]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Mention the prefix added to weapon cvars near the WEP_CVAR macro
authorMario <mario.mario@y7mail.com>
Sat, 11 Jul 2020 14:34:19 +0000 (00:34 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 11 Jul 2020 14:34:19 +0000 (00:34 +1000)
qcsrc/common/weapons/all.qh

index c60243e761326a8bbe0a35ae3fddb2f67c9d33c6..b8d7c56bf98d7ec6adedef081655098b70e56398 100644 (file)
@@ -291,6 +291,7 @@ const .float reloading_time = reload_time;
 
 
 // read cvars from weapon settings
+// cvars are created as such: g_balance_wepname_name
 #define WEP_CVAR(wepname, name) (_wep_##wepname.wepvar_##name)
 #define WEP_CVAR_PRI(wepname, name) WEP_CVAR(wepname, primary_##name)
 #define WEP_CVAR_SEC(wepname, name) WEP_CVAR(wepname, secondary_##name)