#define WITH(it) this.m_##it;
#define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
-#define DEFINE(id, ...) \
- REGISTER_ITEM(id, Ammo, LAMBDA( \
- IF(SV, CONFIGURE \
- , botvalue = 100000 \
- , itemflags = FL_POWERUP \
- , respawntime = g_pickup_respawntime_powerup \
- , respawntimejitter = g_pickup_respawntimejitter_powerup \
- ) \
- MAP(IDENTITY, __VA_ARGS__) \
+#define DEFINE(id, ...) \
+ REGISTER_ITEM(id, Ammo, LAMBDA( \
+ IF(SV, CONFIGURE \
+ , botvalue = 100000 \
+ , itemflags = FL_POWERUP \
+ , respawntime = GET(g_pickup_respawntime_powerup) \
+ , respawntimejitter = GET(g_pickup_respawntimejitter_powerup) \
+ ) \
+ MAP(IDENTITY, __VA_ARGS__) \
))
DEFINE(Strength