From 258be109a00d93dab6243d025320457bc1f0e743 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 12 Jul 2020 00:34:19 +1000 Subject: [PATCH] Mention the prefix added to weapon cvars near the WEP_CVAR macro --- qcsrc/common/weapons/all.qh | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index c60243e76..b8d7c56bf 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -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) -- 2.39.2