]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/mutator_instagib_items.qc
Merge branch 'master' into terencehill/tooltips_cleanup
[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 #ifndef MENUQC
9 MODEL(VaporizerCells_ITEM, Item_Model("a_cells.md3"));
10 #endif
11
12 REGISTER_ITEM(VaporizerCells, Ammo) {
13 #ifndef MENUQC
14     this.m_model                =   MDL_VaporizerCells_ITEM;
15 #endif
16     this.m_sound                =   "misc/itempickup.wav";
17     this.m_name                 =   "Vaporizer Ammo";
18     this.m_icon                 =   "ammo_supercells";
19 #ifdef SVQC
20     this.m_botvalue             =   100;
21     this.m_itemid               =   IT_CELLS;
22     this.m_respawntime          =   GET(instagib_respawntime_ammo);
23     this.m_respawntimejitter    =   GET(instagib_respawntimejitter_ammo);
24 #endif
25 }
26
27 #ifndef MENUQC
28 MODEL(ExtraLife_ITEM, Item_Model("g_h100.md3"));
29 #endif
30
31 REGISTER_ITEM(ExtraLife, Powerup) {
32 #ifndef MENUQC
33     this.m_model                =   MDL_ExtraLife_ITEM;
34 #endif
35     this.m_sound                =   "misc/megahealth.wav";
36     this.m_name                 =   "Extra life";
37     this.m_icon                 =   "item_mega_health";
38     this.m_color                =   '1 0 0';
39     this.m_waypoint             =   _("Extra life");
40     this.m_waypointblink        =   2;
41     this.m_itemid               =   IT_NAILS;
42 }
43
44 #ifndef MENUQC
45 MODEL(Invisibility_ITEM, Item_Model("g_strength.md3"));
46 #endif
47
48 REGISTER_ITEM(Invisibility, Powerup) {
49 #ifndef MENUQC
50     this.m_model            =   MDL_Invisibility_ITEM;
51 #endif
52     this.m_sound            =   "misc/powerup.wav";
53     this.m_name             =   "Invisibility";
54     this.m_icon             =   "strength";
55     this.m_color            =   '0 0 1';
56     this.m_waypoint         =   _("Invisibility");
57     this.m_waypointblink    =   2;
58     this.m_itemid           =   IT_STRENGTH;
59 }
60
61 #ifndef MENUQC
62 MODEL(Speed_ITEM, Item_Model("g_invincible.md3"));
63 #endif
64
65 REGISTER_ITEM(Speed, Powerup) {
66 #ifndef MENUQC
67     this.m_model            =   MDL_Speed_ITEM;
68 #endif
69     this.m_sound            =   "misc/powerup_shield.wav";
70     this.m_name             =   "Speed";
71     this.m_icon             =   "shield";
72     this.m_color            =   '1 0 1';
73     this.m_waypoint         =   _("Speed");
74     this.m_waypointblink    =   2;
75     this.m_itemid           =   IT_INVINCIBLE;
76 }