ENDCLASS(Health)
#ifdef SVQC
- #include <common/t_items.qh>
+ #include <server/items/items.qh>
#endif
#ifdef GAMEQC
{
if(!item.max_health)
item.max_health = g_pickup_healthsmall_max;
- if(!GetResourceAmount(item, RESOURCE_HEALTH))
- SetResourceAmountExplicit(item, RESOURCE_HEALTH, g_pickup_healthsmall);
+ if(!GetResource(item, RES_HEALTH))
+ SetResourceExplicit(item, RES_HEALTH, g_pickup_healthsmall);
}
#endif
this.m_sound = SND_HealthSmall;
#endif
this.netname = "health_small";
- this.m_name = _("small health");
+ this.m_name = _("Small health");
this.m_icon = "health";
#ifdef SVQC
- this.m_itemid = IT_5HP;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
this.m_pickupanyway = GET(g_pickup_healthsmall_anyway);
{
if(!item.max_health)
item.max_health = g_pickup_healthmedium_max;
- if(!GetResourceAmount(item, RESOURCE_HEALTH))
- SetResourceAmountExplicit(item, RESOURCE_HEALTH, g_pickup_healthmedium);
+ if(!GetResource(item, RES_HEALTH))
+ SetResourceExplicit(item, RES_HEALTH, g_pickup_healthmedium);
}
#endif
this.m_sound = SND_HealthMedium;
#endif
this.netname = "health_medium";
- this.m_name = _("medium health");
+ this.m_name = _("Medium health");
this.m_icon = "health";
#ifdef SVQC
- this.m_itemid = IT_25HP;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
this.m_pickupanyway = GET(g_pickup_healthmedium_anyway);
{
if(!item.max_health)
item.max_health = g_pickup_healthbig_max;
- if(!GetResourceAmount(item, RESOURCE_HEALTH))
- SetResourceAmountExplicit(item, RESOURCE_HEALTH, g_pickup_healthbig);
+ if(!GetResource(item, RES_HEALTH))
+ SetResourceExplicit(item, RES_HEALTH, g_pickup_healthbig);
}
#endif
this.m_sound = SND_HealthBig;
#endif
this.netname = "health_big";
- this.m_name = _("big health");
+ this.m_name = _("Big health");
this.m_icon = "health";
this.m_color = '1 0 0';
this.m_waypoint = _("Big health");
#ifdef SVQC
- this.m_itemid = IT_25HP;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_medium);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
this.m_pickupanyway = GET(g_pickup_healthbig_anyway);
{
if(!item.max_health)
item.max_health = g_pickup_healthmega_max;
- if(!GetResourceAmount(item, RESOURCE_HEALTH))
- SetResourceAmountExplicit(item, RESOURCE_HEALTH, g_pickup_healthmega);
+ if(!GetResource(item, RES_HEALTH))
+ SetResourceExplicit(item, RES_HEALTH, g_pickup_healthmega);
}
#endif
this.m_waypointblink = 2;
#ifdef SVQC
this.m_maxs = '16 16 70';
- this.m_itemid = IT_HEALTH;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_long);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
this.m_pickupanyway = GET(g_pickup_healthmega_anyway);