X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=inline;f=qcsrc%2Fserver%2Fw_tuba.qc;h=243b32b20e2b0bdbb3b787dec2275f6bba515d79;hb=a757968c0c2119285da173887c86090e4afcc533;hp=eab14f4f516d62da409e3c2ada398c8afb81b9ce;hpb=6eb01933fb35777b5f60f0b7f5b51847224b5d52;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_tuba.qc b/qcsrc/server/w_tuba.qc index eab14f4f5..243b32b20 100644 --- a/qcsrc/server/w_tuba.qc +++ b/qcsrc/server/w_tuba.qc @@ -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,6 +241,20 @@ 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"; @@ -249,5 +264,6 @@ float w_tuba(float req) w_deathtypestring = "died of #'s great playing on the @!#%'n Tuba"; } return TRUE; -}; +} +#endif #endif