ce9b8760bc197577027095f771a625dcdc374489
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / health.qc
1 #include "health.qh"
2 #ifdef SVQC
3     #include "../../t_items.qh"
4 #endif
5
6 #ifndef MENUQC
7 MODEL(HealthSmall_ITEM, Item_Model("g_h1.md3"));
8 SOUND(HealthSmall, "misc/minihealth");
9 #endif
10
11 REGISTER_ITEM(HealthSmall, Health) {
12 #ifndef MENUQC
13     this.m_model                =   MDL_HealthSmall_ITEM;
14     this.m_sound                =   SND_HealthSmall;
15 #endif
16     this.m_name                 =   "5 Health";
17     this.m_icon                 =   "health";
18 #ifdef SVQC
19     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
20     this.m_itemid               =   IT_5HP;
21     this.m_respawntime          =   GET(g_pickup_respawntime_short);
22     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_short);
23 #endif
24 }
25
26 #ifndef MENUQC
27 MODEL(HealthMedium_ITEM, Item_Model("g_h25.md3"));
28 SOUND(HealthMedium, "misc/mediumhealth");
29 #endif
30
31 REGISTER_ITEM(HealthMedium, Health) {
32 #ifndef MENUQC
33     this.m_model                =   MDL_HealthMedium_ITEM;
34     this.m_sound                =   SND_HealthMedium;
35 #endif
36     this.m_name                 =   "25 Health";
37     this.m_icon                 =   "health";
38 #ifdef SVQC
39     this.m_botvalue             =   BOT_PICKUP_RATING_MID;
40     this.m_itemid               =   IT_25HP;
41     this.m_respawntime          =   GET(g_pickup_respawntime_short);
42     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_short);
43 #endif
44 }
45
46 #ifndef MENUQC
47 MODEL(HealthLarge_ITEM, Item_Model("g_h50.md3"));
48 SOUND(HealthLarge, "misc/mediumhealth");
49 #endif
50
51 REGISTER_ITEM(HealthLarge, Health) {
52 #ifndef MENUQC
53     this.m_model                =   MDL_HealthLarge_ITEM;
54     this.m_sound                =   SND_HealthLarge;
55 #endif
56     this.m_name                 =   "50 Health";
57     this.m_icon                 =   "health";
58     this.m_color                =   '1 0 0';
59     this.m_waypoint             =   _("Large health");
60 #ifdef SVQC
61     this.m_botvalue             =   BOT_PICKUP_RATING_MID;
62     this.m_itemid               =   IT_25HP;
63     this.m_respawntime          =   GET(g_pickup_respawntime_medium);
64     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_medium);
65 #endif
66 }
67
68 #ifndef MENUQC
69 MODEL(HealthMega_ITEM, Item_Model("g_h100.md3"));
70 SOUND(HealthMega, "misc/megahealth");
71 #endif
72
73 REGISTER_ITEM(HealthMega, Health) {
74 #ifndef MENUQC
75     this.m_model                =   MDL_HealthMega_ITEM;
76     this.m_sound                =   SND_HealthMega;
77 #endif
78     this.m_name                 =   "100 Health";
79     this.m_icon                 =   "item_mega_health";
80     this.m_color                =   '1 0 0';
81     this.m_waypoint             =   _("Mega health");
82     this.m_waypointblink        =   2;
83 #ifdef SVQC
84     this.m_botvalue             =   BOT_PICKUP_RATING_HIGH;
85     this.m_itemid               =   IT_HEALTH;
86     this.m_respawntime          =   GET(g_pickup_respawntime_long);
87     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_long);
88 #endif
89 }