]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qc
Use the function in client code too
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qc
index 4dcb2d6e7c2446b006a960c862c7cfaa52421c9d..5ee9aaa3bd052c6b60c125ccd62a4495df5f0563 100644 (file)
@@ -331,20 +331,22 @@ int GetAmmoStat(.int ammotype)
 }
 #endif
 
-#ifdef SVQC
 string W_Sound(string w_snd)
 {
        string output = strcat("weapons/", w_snd, ".wav");
+#ifdef SVQC
        MUTATOR_CALLHOOK(WeaponSound, w_snd, output);
+#endif
        return output;
 }
 
 string W_Model(string w_mdl)
 {
        string output = strcat("models/weapons/", w_mdl);
+#ifdef SVQC
        MUTATOR_CALLHOOK(WeaponModel, w_mdl, output);
+#endif
        return output;
 }
-#endif
 
 #endif