6 ATTRIB(Health, m_mins, vector, '-16 -16 0');
7 ATTRIB(Health, m_maxs, vector, '16 16 48');
8 ATTRIB(Health, m_pickupevalfunc, float(entity player, entity item), healtharmor_pickupevalfunc);
9 ATTRIB(Health, m_botvalue, int, 2500);
14 #include <common/t_items.qh>
18 MODEL(HealthSmall_ITEM, Item_Model("g_h1.md3"));
19 SOUND(HealthSmall, Item_Sound("minihealth"));
22 PROPERTY(float, g_pickup_healthsmall_anyway);
25 REGISTER_ITEM(HealthSmall, Health) {
27 this.m_model = MDL_HealthSmall_ITEM;
28 this.m_sound = SND_HealthSmall;
30 this.m_name = "5 Health";
31 this.m_icon = "health";
33 this.m_itemid = IT_5HP;
34 this.m_respawntime = GET(g_pickup_respawntime_short);
35 this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
36 this.m_pickupanyway = GET(g_pickup_healthsmall_anyway);
41 MODEL(HealthMedium_ITEM, Item_Model("g_h25.md3"));
42 SOUND(HealthMedium, Item_Sound("mediumhealth"));
45 PROPERTY(float, g_pickup_healthmedium_anyway);
48 REGISTER_ITEM(HealthMedium, Health) {
50 this.m_model = MDL_HealthMedium_ITEM;
51 this.m_sound = SND_HealthMedium;
53 this.m_name = "25 Health";
54 this.m_icon = "health";
56 this.m_itemid = IT_25HP;
57 this.m_respawntime = GET(g_pickup_respawntime_short);
58 this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
59 this.m_pickupanyway = GET(g_pickup_healthmedium_anyway);
64 MODEL(HealthBig_ITEM, Item_Model("g_h50.md3"));
65 SOUND(HealthBig, Item_Sound("mediumhealth"));
68 PROPERTY(float, g_pickup_healthbig_anyway);
71 REGISTER_ITEM(HealthBig, Health) {
73 this.m_model = MDL_HealthBig_ITEM;
74 this.m_sound = SND_HealthBig;
76 this.m_name = "50 Health";
77 this.m_icon = "health";
78 this.m_color = '1 0 0';
79 this.m_waypoint = _("Big health");
81 this.m_itemid = IT_25HP;
82 this.m_respawntime = GET(g_pickup_respawntime_medium);
83 this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
84 this.m_pickupanyway = GET(g_pickup_healthbig_anyway);
89 MODEL(HealthMega_ITEM, Item_Model("g_h100.md3"));
90 SOUND(HealthMega, Item_Sound("megahealth"));
93 PROPERTY(float, g_pickup_healthmega_anyway);
96 REGISTER_ITEM(HealthMega, Health) {
98 this.m_model = MDL_HealthMega_ITEM;
99 this.m_sound = SND_HealthMega;
101 this.m_name = "100 Health";
102 this.m_icon = "item_mega_health";
103 this.m_color = '1 0 0';
104 this.m_waypoint = _("Mega health");
105 this.m_waypointblink = 2;
107 this.m_maxs = '16 16 70';
108 this.m_itemid = IT_HEALTH;
109 this.m_respawntime = GET(g_pickup_respawntime_long);
110 this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
111 this.m_pickupanyway = GET(g_pickup_healthmega_anyway);