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