]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/powerup.qc
Sounds: infer extensions
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / powerup.qc
1 #include "powerup.qh"
2
3 #ifndef SVQC
4 .int m_itemid;
5 #endif
6
7 #ifndef MENUQC
8 MODEL(Strength_ITEM, Item_Model("g_strength.md3"));
9 SOUND(Strength, "misc/powerup");
10 #endif
11
12 REGISTER_ITEM(Strength, Powerup) {
13 #ifndef MENUQC
14     this.m_model            =   MDL_Strength_ITEM;
15     this.m_sound            =   SND_Strength;
16 #endif
17     this.m_name             =   "Strength Powerup";
18     this.m_icon             =   "strength";
19     this.m_color            =   '0 0 1';
20     this.m_waypoint         =   _("Strength");
21     this.m_waypointblink    =   2;
22     this.m_itemid           =   IT_STRENGTH;
23 }
24
25 #ifndef MENUQC
26 MODEL(Shield_ITEM, Item_Model("g_invincible.md3"));
27 SOUND(Shield, "misc/powerup_shield");
28 #endif
29
30 REGISTER_ITEM(Shield, Powerup) {
31 #ifndef MENUQC
32     this.m_model            =   MDL_Shield_ITEM;
33     this.m_sound            =   SND_Shield;
34 #endif
35     this.m_name             =   "Shield";
36     this.m_icon             =   "shield";
37     this.m_color            =   '1 0 1';
38     this.m_waypoint         =   _("Shield");
39     this.m_waypointblink    =   2;
40     this.m_itemid           =   IT_INVINCIBLE;
41 }