ENDCLASS(Armor)
#ifdef SVQC
- #include <common/t_items.qh>
+ #include <server/items/items.qh>
#endif
#ifdef GAMEQC
#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_ARMOR_SHARD;
+ 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_armorsmall_anyway);
#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_ARMOR;
+ 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_armormedium_anyway);
#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
- this.m_itemid = IT_ARMOR;
+ 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_armorbig_anyway);
#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;
#ifdef SVQC
this.m_maxs = '16 16 70';
- this.m_itemid = IT_ARMOR;
+ 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_armormega_anyway);