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 c60243e..b8d7c56 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)