a069e535f414559a5967677fcd67b13eacba91c5
[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 SOUND(VaporizerCells, "misc/itempickup");
13 #endif
14
15 REGISTER_ITEM(VaporizerCells, Ammo) {
16 #ifndef MENUQC
17     this.m_model                =   MDL_VaporizerCells_ITEM;
18     this.m_sound                =   SND_VaporizerCells;
19 #endif
20     this.m_name                 =   "Vaporizer Ammo";
21     this.m_icon                 =   "ammo_supercells";
22 #ifdef SVQC
23     this.m_botvalue             =   100;
24     this.m_itemid               =   IT_CELLS;
25     this.m_respawntime          =   GET(instagib_respawntime_ammo);
26     this.m_respawntimejitter    =   GET(instagib_respawntimejitter_ammo);
27 #endif
28 }
29
30 #ifndef MENUQC
31 MODEL(ExtraLife_ITEM, Item_Model("g_h100.md3"));
32 SOUND(ExtraLife, "misc/megahealth");
33 #endif
34
35 REGISTER_ITEM(ExtraLife, Powerup) {
36 #ifndef MENUQC
37     this.m_model                =   MDL_ExtraLife_ITEM;
38     this.m_sound                =   SND_ExtraLife;
39 #endif
40     this.m_name                 =   "Extra life";
41     this.m_icon                 =   "item_mega_health";
42     this.m_color                =   '1 0 0';
43     this.m_waypoint             =   _("Extra life");
44     this.m_waypointblink        =   2;
45     this.m_itemid               =   IT_NAILS;
46 }
47
48 #ifndef MENUQC
49 MODEL(Invisibility_ITEM, Item_Model("g_strength.md3"));
50 SOUND(Invisibility, "misc/powerup");
51 #endif
52
53 REGISTER_ITEM(Invisibility, Powerup) {
54 #ifndef MENUQC
55     this.m_model            =   MDL_Invisibility_ITEM;
56     this.m_sound            =   SND_Invisibility;
57 #endif
58     this.m_name             =   "Invisibility";
59     this.m_icon             =   "strength";
60     this.m_color            =   '0 0 1';
61     this.m_waypoint         =   _("Invisibility");
62     this.m_waypointblink    =   2;
63     this.m_itemid           =   IT_STRENGTH;
64 }
65
66 #ifndef MENUQC
67 MODEL(Speed_ITEM, Item_Model("g_invincible.md3"));
68 SOUND(Speed, "misc/powerup_shield");
69 #endif
70
71 REGISTER_ITEM(Speed, Powerup) {
72 #ifndef MENUQC
73     this.m_model            =   MDL_Speed_ITEM;
74     this.m_sound            =   SND_Speed;
75 #endif
76     this.m_name             =   "Speed";
77     this.m_icon             =   "shield";
78     this.m_color            =   '1 0 1';
79     this.m_waypoint         =   _("Speed");
80     this.m_waypointblink    =   2;
81     this.m_itemid           =   IT_INVINCIBLE;
82 }