]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qc
Fix the hooks for weapon and sound models, supposedly
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qc
index 5ee9aaa3bd052c6b60c125ccd62a4495df5f0563..7d5ef31eecef27277ed8c73d1b92456c0e6a2bb0 100644 (file)
@@ -336,8 +336,10 @@ string W_Sound(string w_snd)
        string output = strcat("weapons/", w_snd, ".wav");
 #ifdef SVQC
        MUTATOR_CALLHOOK(WeaponSound, w_snd, output);
-#endif
+       return weapon_sound_output;
+#else
        return output;
+#endif
 }
 
 string W_Model(string w_mdl)
@@ -345,8 +347,10 @@ string W_Model(string w_mdl)
        string output = strcat("models/weapons/", w_mdl);
 #ifdef SVQC
        MUTATOR_CALLHOOK(WeaponModel, w_mdl, output);
-#endif
+       return weapon_model_output;
+#else
        return output;
+#endif
 }
 
 #endif