#endif
this.netname = "armor_small";
this.m_name = _("Small armor");
- this.m_icon = "armor";
+ this.m_icon = "armor_small";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "armor"; // compatible with Xonotic v0.8.2 or lower
+#endif
#ifdef SVQC
this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
#endif
this.netname = "armor_medium";
this.m_name = _("Medium armor");
- this.m_icon = "armor";
+ this.m_icon = "armor_medium";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "armor"; // compatible with Xonotic v0.8.2 or lower
+#endif
#ifdef SVQC
this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_medium);
#endif
this.netname = "armor_big";
this.m_name = _("Big armor");
- this.m_icon = "armor";
+ this.m_icon = "armor_big";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "armor"; // compatible with Xonotic v0.8.2 or lower
+#endif
this.m_color = '0 1 0';
this.m_waypoint = _("Big armor");
#ifdef SVQC
#endif
this.netname = "armor_mega";
this.m_name = _("Mega armor");
- this.m_icon = "item_large_armor";
+ this.m_icon = "armor_mega";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "item_large_armor"; // compatible with Xonotic v0.8.2 or lower
+#endif
this.m_color = '0 1 0';
this.m_waypoint = _("Mega armor");
this.m_waypointblink = 2;
#endif
this.netname = "health_small";
this.m_name = _("Small health");
- this.m_icon = "health";
+ this.m_icon = "health_small";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "health"; // compatible with Xonotic v0.8.2 or lower
+#endif
#ifdef SVQC
this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
#endif
this.netname = "health_medium";
this.m_name = _("Medium health");
- this.m_icon = "health";
+ this.m_icon = "health_medium";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "health"; // compatible with Xonotic v0.8.2 or lower
+#endif
#ifdef SVQC
this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
#endif
this.netname = "health_big";
this.m_name = _("Big health");
- this.m_icon = "health";
+ this.m_icon = "health_big";
this.m_color = '1 0 0';
this.m_waypoint = _("Big health");
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "health"; // compatible with Xonotic v0.8.2 or lower
+#endif
#ifdef SVQC
this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_medium);
#endif
this.netname = "health_mega";
this.m_name = _("Mega health");
- this.m_icon = "item_mega_health";
+ this.m_icon = "health_mega";
+#ifdef CSQC
+ if(precache_pic(strcat("gfx/hud/luma/", this.m_icon)) == "")
+ this.m_icon = "item_mega_health"; // compatible with Xonotic v0.8.2 or lower
+#endif
this.m_color = '1 0 0';
this.m_waypoint = _("Mega health");
this.m_waypointblink = 2;