X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_tuba.qc;h=6b3287b59ed1ee29b1e0ee8228e89e819f0b04b0;hb=2c3d9f6a5a8c286aac7ca0d5192225d39532297f;hp=15d4ef9d7deb44e9d6690fff01c77cbde572735d;hpb=fdbb1364d05c525c5dfc178b10baf435fd00840c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_tuba.qc b/qcsrc/server/w_tuba.qc index 15d4ef9d7..6b3287b59 100644 --- a/qcsrc/server/w_tuba.qc +++ b/qcsrc/server/w_tuba.qc @@ -186,7 +186,7 @@ float Tuba_GetNote(entity pl, float hittype) // that way, holes in the range of notes are "plugged" if(teamplay) { - if(pl.team == FL_TEAM_2 || pl.team == FL_TEAM_4) + if(pl.team == NUM_TEAM_2 || pl.team == NUM_TEAM_4) note += 3; } else @@ -290,8 +290,6 @@ void W_Tuba_NoteOn(float hittype) hittype |= HITTYPE_SECONDARY; if(self.tuba_instrument & 2) hittype |= HITTYPE_BOUNCE; - if(self.tuba_instrument & 4) - hittype |= HITTYPE_HEADSHOT; if(self.tuba_note) { @@ -428,18 +426,18 @@ float w_tuba(float req) else if (req == WR_SUICIDEMESSAGE) { if(w_deathtype & HITTYPE_BOUNCE) - return WEAPON_ACCORDEON_SUICIDE; - else if(w_deathtype & HITTYPE_HEADSHOT) return WEAPON_KLEINBOTTLE_SUICIDE; + else if(w_deathtype & HITTYPE_SECONDARY) + return WEAPON_ACCORDEON_SUICIDE; else return WEAPON_TUBA_SUICIDE; } else if (req == WR_KILLMESSAGE) { if(w_deathtype & HITTYPE_BOUNCE) - return WEAPON_ACCORDEON_MURDER; - else if(w_deathtype & HITTYPE_HEADSHOT) return WEAPON_KLEINBOTTLE_MURDER; + else if(w_deathtype & HITTYPE_SECONDARY) + return WEAPON_ACCORDEON_MURDER; else return WEAPON_TUBA_MURDER; } @@ -449,14 +447,8 @@ float w_tuba(float req) #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 - } + // nothing to do here; particles of tuba are handled differently + return TRUE; } #endif