]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/health.qc
Merge branch 'master' into Mario/vehicles
[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 REGISTER_ITEM(HealthSmall, Health) {
7     this.m_model                =   "models/items/g_h1.md3";
8     this.m_sound                =   "misc/minihealth.wav";
9     this.m_name                 =   "5 Health";
10 #ifdef SVQC
11     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
12     this.m_itemid               =   IT_5HP;
13     this.m_respawntime          =   GET(g_pickup_respawntime_short);
14     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_short);
15 #endif
16 }
17
18 REGISTER_ITEM(HealthMedium, Health) {
19     this.m_model                =   "models/items/g_h25.md3";
20     this.m_sound                =   "misc/mediumhealth.wav";
21     this.m_name                 =   "25 Health";
22 #ifdef SVQC
23     this.m_botvalue             =   BOT_PICKUP_RATING_MID;
24     this.m_itemid               =   IT_25HP;
25     this.m_respawntime          =   GET(g_pickup_respawntime_short);
26     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_short);
27 #endif
28 }
29
30 REGISTER_ITEM(HealthLarge, Health) {
31     this.m_model                =   "models/items/g_h50.md3";
32     this.m_sound                =   "misc/mediumhealth.wav";
33     this.m_name                 =   "50 Health";
34 #ifdef SVQC
35     this.m_botvalue             =   BOT_PICKUP_RATING_MID;
36     this.m_itemid               =   IT_25HP;
37     this.m_respawntime          =   GET(g_pickup_respawntime_medium);
38     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_medium);
39 #endif
40 }
41
42 REGISTER_ITEM(HealthMega, Health) {
43     this.m_model                =   "models/items/g_h100.md3";
44     this.m_sound                =   "misc/megahealth.wav";
45     this.m_name                 =   "100 Health";
46 #ifdef SVQC
47     this.m_botvalue             =   BOT_PICKUP_RATING_HIGH;
48     this.m_itemid               =   IT_HEALTH;
49     this.m_respawntime          =   GET(g_pickup_respawntime_long);
50     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_long);
51 #endif
52 }