From: Mario Date: Sat, 11 Jul 2020 14:34:19 +0000 (+1000) Subject: Mention the prefix added to weapon cvars near the WEP_CVAR macro X-Git-Tag: xonotic-v0.8.5~880 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=258be109a00d93dab6243d025320457bc1f0e743;hp=c1b079f2971aac5b48b4e0a37d21c50eab5e2021;p=xonotic%2Fxonotic-data.pk3dir.git Mention the prefix added to weapon cvars near the WEP_CVAR macro --- 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)