X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qc;h=7a3e5004696ee1c655a8f5eca7e3cb5cb3506b54;hb=1ce098d021b62a00b258f68904017d8406b05521;hp=fc225cdb7d40ecf648da2b802ecd504fba8631cc;hpb=34095b88e7a8d82f83aca8ce1009f9622026d159;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/all.qc b/qcsrc/common/items/all.qc index fc225cdb7..7a3e50046 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 = M_ARGV(1, string); +#endif + return output; } #endif