]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qc
Merge branch 'master' into terencehill/keyhunt
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qc
index 1700ae9fbe4e71013dca7b89de60fad0bb481804..0a26a75b5a7fd33aeee0f0b35a3dfd4b8ec92b8b 100644 (file)
@@ -1,11 +1,27 @@
 #include "all.qh"
 
-#include "all.inc"
+void Dump_Items()
+{
+    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;
+}
 
-void ItemTest()
+string Item_Sound(string it_snd)
 {
-    ITEMS_FOREACH(it != NULL, LAMBDA({
-        print(strcat(etos(it), "\n"));
-        ITEM_SEND(Default, it);
-    }));
+       string output = strcat("misc/", it_snd);
+#ifdef SVQC
+               MUTATOR_CALLHOOK(ItemSound, it_snd, output);
+               return M_ARGV(1, string);
+#else
+               return output;
+#endif
 }