]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/mutator_instagib_items.qc
Allow turning off damage from lava and slime in instagib, as it used to be
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_instagib_items.qc
1 #include "../../common/items/item.qh"
2
3 #define WITH(it) this.m_##it;
4 #define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
5
6 float instagib_respawntime_ammo = 45;
7 float instagib_respawntimejitter_ammo = 0;
8 GETTER(float, instagib_respawntime_ammo)
9 GETTER(float, instagib_respawntimejitter_ammo)
10
11 REGISTER_ITEM(VaporizerCells, Ammo) {
12     this.m_model                =   "a_cells.md3";
13     this.m_sound                =   "misc/itempickup.wav";
14     this.m_name                 =   "Vaporizer Ammo";
15     this.m_icon                 =   "ammo_supercells";
16 #ifdef SVQC
17     this.m_botvalue             =   100;
18     this.m_itemid               =   IT_CELLS;
19     this.m_respawntime          =   GET(instagib_respawntime_ammo);
20     this.m_respawntimejitter    =   GET(instagib_respawntimejitter_ammo);
21 #endif
22 }
23
24 REGISTER_ITEM(ExtraLife, Powerup) {
25     this.m_model                =   "g_h100.md3";
26     this.m_sound                =   "misc/megahealth.wav";
27     this.m_name                 =   "Extralife";
28     this.m_icon                 =   "item_mega_health";
29 #ifdef SVQC
30     this.m_itemid               =   IT_NAILS;
31     this.m_botvalue             =   BOT_PICKUP_RATING_HIGH;
32 #endif
33 }
34
35 #undef WITH
36 #undef CONFIGURE