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