]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qc
Remove a few server-side cvars from the client
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qc
index fa198bb8328b709f090c035663e896fd62b4f0c1..7782cda0d6d1518c47de858484a6123974dcde45 100644 (file)
@@ -1,14 +1,16 @@
-#ifndef ALL_C
-#define ALL_C
 #include "all.qh"
 
-#include "all.inc"
-
 void Dump_Items()
 {
-    ITEMS_FOREACH(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 = M_ARGV(1, string);
 #endif
+    return output;
+}