X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qc;h=0a26a75b5a7fd33aeee0f0b35a3dfd4b8ec92b8b;hb=451e02a2857d8c671f6dcf6a0639ea7c609b3ba9;hp=7782cda0d6d1518c47de858484a6123974dcde45;hpb=06ac66a5edaa645e19ed9a6482409e8656a65b1d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/all.qc b/qcsrc/common/items/all.qc index 7782cda0d..0a26a75b5 100644 --- a/qcsrc/common/items/all.qc +++ b/qcsrc/common/items/all.qc @@ -14,3 +14,14 @@ string Item_Model(string item_mdl) #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 +}