#include "../../server/defs.qh"
#include "../notifications.qh"
#include "../deathtypes/all.qh"
- #include "../../server/mutators/mutators_include.qh"
+ #include "../../server/mutators/all.qh"
#include "../mapinfo.qh"
#include "../../server/command/common.qh"
#include "../../lib/csqcmodel/sv_model.qh"
string W_Sound(string w_snd)
{
- #define extensions(X) X(wav) X(ogg)
- #define tryext(ext) { if (fexists(strcat("sound/", output = strcat("weapons/", w_snd, "."#ext)))) break; }
- string output;
- do {
- extensions(tryext);
- #undef tryext
- #undef extensions
- output = strcat("weapons/", w_snd);
- } while (0);
-
+ string output = strcat("weapons/", w_snd);
#ifdef SVQC
MUTATOR_CALLHOOK(WeaponSound, w_snd, output);
return weapon_sound_output;