]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qc
Merge branch 'terencehill/lms_itemtimes_fix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qc
index 2de5afb4ca4869dbe75ee6d10c91ec31e4a94497..927b2ece26c1ed5282d9dda604c765a1aac0c281 100644 (file)
@@ -6,9 +6,19 @@
 
 void Dump_Items()
 {
-    ITEMS_FOREACH(true, LAMBDA({
+    FOREACH(Items, true, LAMBDA(
         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