X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qc;h=9d7cfa8d32e428aed292e73b8a4d501cbfada5f9;hb=109c5785a22fb4336ac5e91d5f1fa91678582164;hp=fc225cdb7d40ecf648da2b802ecd504fba8631cc;hpb=4a1190b6273d8909b799314abb4f7b665b220176;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/all.qc b/qcsrc/common/items/all.qc index fc225cdb7..9d7cfa8d3 100644 --- a/qcsrc/common/items/all.qc +++ b/qcsrc/common/items/all.qc @@ -2,13 +2,21 @@ #define ITEMS_ALL_C #include "all.qh" -#include "all.inc" +#include "item/_mod.inc" 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