]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/mutator_instagib_items.qc
Merge branch 'master' into TimePath/global_self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_instagib_items.qc
1 #include "../../common/items/item.qh"
2
3 float instagib_respawntime_ammo = 45;
4 float instagib_respawntimejitter_ammo = 0;
5 GETTER(float, instagib_respawntime_ammo)
6 GETTER(float, instagib_respawntimejitter_ammo)
7
8 REGISTER_ITEM(VaporizerCells, Ammo) {
9     this.m_model                =   "a_cells.md3";
10     this.m_sound                =   "misc/itempickup.wav";
11     this.m_name                 =   "Vaporizer Ammo";
12     this.m_icon                 =   "ammo_supercells";
13 #ifdef SVQC
14     this.m_botvalue             =   100;
15     this.m_itemid               =   IT_CELLS;
16     this.m_respawntime          =   GET(instagib_respawntime_ammo);
17     this.m_respawntimejitter    =   GET(instagib_respawntimejitter_ammo);
18 #endif
19 }
20
21 REGISTER_ITEM(ExtraLife, Powerup) {
22     this.m_model                =   "g_h100.md3";
23     this.m_sound                =   "misc/megahealth.wav";
24     this.m_name                 =   "Extralife";
25     this.m_icon                 =   "item_mega_health";
26 #ifdef SVQC
27     this.m_itemid               =   IT_NAILS;
28     this.m_botvalue             =   BOT_PICKUP_RATING_HIGH;
29 #endif
30 }