]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapons.qh
Even more cleanup (sort of)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapons.qh
index bfb1964dd99026b8f8b9388c97ea712326b38991..a4ced87a9b990055ba8a30a55ef7b3916187f720 100644 (file)
@@ -309,6 +309,13 @@ float WEP_LAST;
 
 #define WEP_SET_PROP(wepid,weapon,prop,name) get_weaponinfo(##wepid).##prop = autocvar_g_balance_##weapon##_##name;
 
+#define WEP_SET_PROPS(wepsettings,wepid) \
+       #define WEP_ADD_CVAR(weapon,mode,name) \
+       #define WEP_ADD_PROP(weapon,prop,name) WEP_SET_PROP(wepid,weapon,prop,name) \
+       wepsettings \
+       #undef WEP_ADD_CVAR \
+       #undef WEP_ADD_PROP
+
 #include "all.qh"
 
 #undef WEP_ADD_CVAR