, respawntime = GET(g_pickup_respawntime_ammo) \
, respawntimejitter = GET(g_pickup_respawntimejitter_ammo) \
) \
- MAP(IDENTITY, __VA_ARGS__) \
+ UNWORDS(__VA_ARGS__) \
))
DEFINE(Bullets
#define WITH(it) this.m_##it;
#define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
-#define DEFINE(id, ...) REGISTER_ITEM(id, Armor, MAP(IDENTITY, __VA_ARGS__))
+#define DEFINE(id, ...) REGISTER_ITEM(id, Armor, UNWORDS(__VA_ARGS__))
DEFINE(ArmorSmall
,APPLY(CONFIGURE
#define WITH(it) this.m_##it;
#define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
-#define DEFINE(id, ...) REGISTER_ITEM(id, Health, MAP(IDENTITY, __VA_ARGS__))
+#define DEFINE(id, ...) REGISTER_ITEM(id, Health, UNWORDS(__VA_ARGS__))
DEFINE(HealthSmall
,APPLY(CONFIGURE
#define WITH(it) this.m_##it;
#define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
-#define DEFINE(id, ...) REGISTER_ITEM(id, Pickup, MAP(IDENTITY, __VA_ARGS__))
+#define DEFINE(id, ...) REGISTER_ITEM(id, Pickup, UNWORDS(__VA_ARGS__))
DEFINE(Jetpack
,APPLY(CONFIGURE
, respawntime = GET(g_pickup_respawntime_powerup) \
, respawntimejitter = GET(g_pickup_respawntimejitter_powerup) \
) \
- MAP(IDENTITY, __VA_ARGS__) \
+ UNWORDS(__VA_ARGS__) \
))
DEFINE(Strength
#define IDENTITY(it) it
+#define UNWORDS(...) MAP(IDENTITY, __VA_ARGS__)
+
#define APPLY(f, ...) f(__VA_ARGS__)
#ifdef SVQC
GETTER(float, instagib_respawntime_ammo)
GETTER(float, instagib_respawntimejitter_ammo)
-REGISTER_ITEM(VaporizerCells, Pickup, MAP(IDENTITY
+REGISTER_ITEM(VaporizerCells, Pickup, APPLY(UNWORDS
,APPLY(CONFIGURE
, model = "models/items/a_cells.md3"
, sound = "misc/itempickup.wav"
)
))
-REGISTER_ITEM(ExtraLife, Pickup, MAP(IDENTITY
+REGISTER_ITEM(ExtraLife, Pickup, APPLY(UNWORDS
,APPLY(CONFIGURE
, model = "models/items/g_h100.md3"
, sound = "misc/megahealth.wav"