]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/powerup.qc
f411d748a8d5eaeb891ec8eace2d2dd76725695e
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / powerup.qc
1 #include "powerup.qh"
2 #include "../../../server/t_items.qh"
3
4 #ifndef SVQC
5 .int m_itemid;
6 #endif
7
8 #ifndef MENUQC
9 MODEL(Strength_ITEM, Item_Model("g_strength.md3"));
10 #endif
11
12 REGISTER_ITEM(Strength, Powerup) {
13 #ifndef MENUQC
14     this.m_model            =   MDL_Strength_ITEM;
15 #endif
16     this.m_sound            =   "misc/powerup.wav";
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 #endif
28
29 REGISTER_ITEM(Shield, Powerup) {
30 #ifndef MENUQC
31     this.m_model            =   MDL_Shield_ITEM;
32 #endif
33     this.m_sound            =   "misc/powerup_shield.wav";
34     this.m_name             =   "Shield";
35     this.m_icon             =   "shield";
36     this.m_color            =   '1 0 1';
37     this.m_waypoint         =   _("Shield");
38     this.m_waypointblink    =   2;
39     this.m_itemid           =   IT_INVINCIBLE;
40 }