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