]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_tuba.qc
store the champion name in a global string so that we can reset the champion entity...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_tuba.qc
index eab14f4f516d62da409e3c2ada398c8afb81b9ce..c89735e55930fc81a8f8bc752890c5bd1fa1f73d 100644 (file)
@@ -1,6 +1,7 @@
 #ifdef REGISTER_WEAPON
 REGISTER_WEAPON(TUBA, w_tuba, 0, 1, WEP_FLAG_HIDDEN | WEP_TYPE_SPLASH, BOT_PICKUP_RATING_MID, "tuba", "tuba", "@!#%'n Tuba");
 #else
+#ifdef SVQC
 //#define TUBA_NOTE(n) strcat("weapons/tuba_note", ftos(n), ".wav")
 .float tuba_notecount;
 .entity tuba_note;
@@ -240,14 +241,29 @@ float w_tuba(float req)
                return TRUE; // TODO use fuel?
        else if (req == WR_CHECKAMMO2)
                return TRUE; // TODO use fuel?
+       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 = "hurt his own ears with the @!#%'n Tuba";
+               w_deathtypestring = "%s hurt his own ears with the @!#%%'n Tuba";
        }
        else if (req == WR_KILLMESSAGE)
        {
-               w_deathtypestring = "died of #'s great playing on the @!#%'n Tuba";
+               w_deathtypestring = "%s died of %s's great playing on the @!#%%'n Tuba";
        }
        return TRUE;
-};
+}
+#endif
 #endif