1 #include "../../common/items/item.qh"
3 #define WITH(it) this.m_##it;
4 #define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
6 float instagib_respawntime_ammo = 45;
7 float instagib_respawntimejitter_ammo = 0;
8 GETTER(float, instagib_respawntime_ammo)
9 GETTER(float, instagib_respawntimejitter_ammo)
11 REGISTER_ITEM(VaporizerCells, Pickup, APPLY(UNWORDS
13 , model = "models/items/a_cells.md3"
14 , sound = "misc/itempickup.wav"
15 , name = "Vaporizer Ammo"
20 , respawntime = GET(instagib_respawntime_ammo)
21 , respawntimejitter = GET(instagib_respawntimejitter_ammo)
25 REGISTER_ITEM(ExtraLife, Pickup, APPLY(UNWORDS
27 , model = "models/items/g_h100.md3"
28 , sound = "misc/megahealth.wav"
32 , botvalue = BOT_PICKUP_RATING_HIGH
33 , itemflags = FL_POWERUP
35 , respawntime = GET(g_pickup_respawntime_powerup)
36 , respawntimejitter = GET(g_pickup_respawntimejitter_powerup)