]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/pickup.qh
Inventory system
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / pickup.qh
index a391d6861d5f49a8d8f06c5d3f2661fdc2772519..1875517f137cba8eac0d5508354907416125a996 100644 (file)
@@ -6,7 +6,7 @@ CLASS(Pickup, GameItem)
     ATTRIB(Pickup, m_sound, string, "misc/itempickup.wav")
     ATTRIB(Pickup, m_name, string, string_null)
     METHOD(Pickup, show, void(entity this))
-    void Pickup_show(entity this) { printf("%s\n", this.m_name); }
+    void Pickup_show(entity this) { printf("%s: %s\n", etos(this), this.m_name); }
 #ifdef SVQC
     ATTRIB(Pickup, m_botvalue, int, 0)
     ATTRIB(Pickup, m_itemflags, int, 0)
@@ -16,7 +16,7 @@ CLASS(Pickup, GameItem)
     ATTRIB(Pickup, m_respawntimejitter, float(), func_null)
     METHOD(Pickup, giveTo, bool(entity this, entity item, entity player))
     bool Pickup_giveTo(entity this, entity item, entity player) { return Item_GiveTo(item, player); }
-    bool ITEM_HANDLE(Pickup, entity this, entity item, entity player) { printf("%s picked up %s\n", etos(player), this.m_name); return this.giveTo(this, item, player); }
+    bool ITEM_HANDLE(Pickup, entity this, entity item, entity player);
 #endif
 ENDCLASS(Pickup)