X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qc;h=7782cda0d6d1518c47de858484a6123974dcde45;hb=bf094df0de66898cb15780dbf136bf93b0761857;hp=fc225cdb7d40ecf648da2b802ecd504fba8631cc;hpb=0b7855b8e65e0220238a08cdcdd2ca7386e3d06e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/all.qc b/qcsrc/common/items/all.qc index fc225cdb7..7782cda0d 100644 --- a/qcsrc/common/items/all.qc +++ b/qcsrc/common/items/all.qc @@ -1,14 +1,16 @@ -#ifndef ITEMS_ALL_C -#define ITEMS_ALL_C #include "all.qh" -#include "all.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; +}