X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qc;h=7a3e5004696ee1c655a8f5eca7e3cb5cb3506b54;hb=fd94897955a07d2294cb5d5c13d1a7ef2991f711;hp=fa198bb8328b709f090c035663e896fd62b4f0c1;hpb=ff442844108257ce535eae6dc08eaf659ff5efd7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/all.qc b/qcsrc/common/items/all.qc index fa198bb83..7a3e50046 100644 --- a/qcsrc/common/items/all.qc +++ b/qcsrc/common/items/all.qc @@ -1,14 +1,22 @@ -#ifndef ALL_C -#define ALL_C +#ifndef ITEMS_ALL_C +#define ITEMS_ALL_C #include "all.qh" -#include "all.inc" +#include "item/_mod.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; } #endif