X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qc;h=0a26a75b5a7fd33aeee0f0b35a3dfd4b8ec92b8b;hb=2c5fb2544a77f2cf5fb786aca0d3e8b6e8aaf0cb;hp=9d7cfa8d32e428aed292e73b8a4d501cbfada5f9;hpb=d271f27a5ac351a3a7b39636932f6d661492be1d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/all.qc b/qcsrc/common/items/all.qc index 9d7cfa8d3..0a26a75b5 100644 --- a/qcsrc/common/items/all.qc +++ b/qcsrc/common/items/all.qc @@ -1,9 +1,5 @@ -#ifndef ITEMS_ALL_C -#define ITEMS_ALL_C #include "all.qh" -#include "item/_mod.inc" - void Dump_Items() { FOREACH(Items, true, ITEM_HANDLE(Show, it)); @@ -14,9 +10,18 @@ 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; + output = M_ARGV(1, string); #endif return output; } +string Item_Sound(string it_snd) +{ + string output = strcat("misc/", it_snd); +#ifdef SVQC + MUTATOR_CALLHOOK(ItemSound, it_snd, output); + return M_ARGV(1, string); +#else + return output; #endif +}