]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_tuba.qc
More tiny tweaks to cvar and comment
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_tuba.qc
index 295282f4762277cf45d9f5cad06e91fe0d3ca448..c89735e55930fc81a8f8bc752890c5bd1fa1f73d 100644 (file)
@@ -241,20 +241,28 @@ float w_tuba(float req)
                return TRUE; // TODO use fuel?
        else if (req == WR_CHECKAMMO2)
                return TRUE; // TODO use fuel?
-       else if (req == WR_SUICIDEMESSAGE)
-       {
-               w_deathtypestring = "hurt his own ears with the @!#%'n Tuba";
-       }
-       else if (req == WR_KILLMESSAGE)
-       {
-               w_deathtypestring = "died of #'s great playing on the @!#%'n Tuba";
-       }
        return TRUE;
 };
 #endif
 #ifdef CSQC
 float w_tuba(float req)
 {
+       if(req == WR_IMPACTEFFECT)
+       {
+               // nothing to do here; particles of tuba are handled differently
+       }
+       else if(req == WR_PRECACHE)
+       {
+               // nothing to do
+       }
+       else if (req == WR_SUICIDEMESSAGE)
+       {
+               w_deathtypestring = "%s hurt his own ears with the @!#%%'n Tuba";
+       }
+       else if (req == WR_KILLMESSAGE)
+       {
+               w_deathtypestring = "%s died of %s's great playing on the @!#%%'n Tuba";
+       }
        return TRUE;
 }
 #endif