]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/health.qc
Remove SPAWNTIMES enum
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / health.qc
1 #include "health.qh"
2 #include "../../../server/t_items.qh"
3
4 #define WITH(it) this.m_##it;
5 #define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
6 #define DEFINE(id, ...) REGISTER_ITEM(id, Health, MAP(IDENTITY, __VA_ARGS__))
7
8 DEFINE(HealthSmall
9     ,IF(ALL, CONFIGURE
10     ,   model               =   "models/items/g_h1.md3"
11     ,   sound               =   "misc/minihealth.wav"
12     ,   name                =   "5 Health"
13     ,   itemid              =   IT_5HP
14     )
15     ,IF(SV, CONFIGURE
16     ,   botvalue            =   BOT_PICKUP_RATING_LOW
17     ,   respawntime         =         g_pickup_respawntime_short
18     ,   respawntimejitter   =   g_pickup_respawntimejitter_short
19     )
20 )
21
22 DEFINE(HealthMedium
23     ,IF(ALL, CONFIGURE
24     ,   model               =   "models/items/g_h25.md3"
25     ,   sound               =   "misc/mediumhealth.wav"
26     ,   name                =   "25 Health"
27     ,   itemid              =   IT_25HP
28     )
29     ,IF(SV, CONFIGURE
30     ,   botvalue            =   BOT_PICKUP_RATING_MID
31     ,   respawntime         =         g_pickup_respawntime_short
32     ,   respawntimejitter   =   g_pickup_respawntimejitter_short
33     )
34 )
35
36 DEFINE(HealthLarge
37     ,IF(ALL, CONFIGURE
38     ,   model               =   "models/items/g_h50.md3"
39     ,   sound               =   "misc/mediumhealth.wav"
40     ,   name                =   "50 Health"
41     ,   itemid              =   IT_25HP
42     )
43     ,IF(SV, CONFIGURE
44     ,   botvalue            =   BOT_PICKUP_RATING_MID
45     ,   respawntime         =         g_pickup_respawntime_medium
46     ,   respawntimejitter   =   g_pickup_respawntimejitter_medium
47     )
48 )
49
50 DEFINE(HealthMega
51     ,IF(ALL, CONFIGURE
52     ,   model               =   "models/items/g_h100.md3"
53     ,   sound               =   "misc/megahealth.wav"
54     ,   name                =   "100 Health"
55     ,   itemid              =   IT_HEALTH
56     )
57     ,IF(SV, CONFIGURE
58     ,   botvalue            =   BOT_PICKUP_RATING_HIGH
59     ,   respawntime         =         g_pickup_respawntime_long
60     ,   respawntimejitter   =   g_pickup_respawntimejitter_long
61     )
62 )
63
64 #undef WITH
65 #undef CONFIGURE
66 #undef DEFINE