]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qc
menu: #undef IMPLEMENTATION
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qc
index fc225cdb7d40ecf648da2b802ecd504fba8631cc..62dc0fe270be2d48efaf5ab54b3547aa41ed9665 100644 (file)
@@ -6,9 +6,17 @@
 
 void Dump_Items()
 {
-    FOREACH(ITEMS, true, LAMBDA(
-        ITEM_HANDLE(Show, it);
-    ));
+    FOREACH(Items, true, ITEM_HANDLE(Show, it));
+}
+
+string Item_Model(string item_mdl)
+{
+    string output = strcat("models/items/", item_mdl);
+#ifdef SVQC
+    MUTATOR_CALLHOOK(ItemModel, item_mdl, output);
+    output = item_model_output;
+#endif
+    return output;
 }
 
 #endif