X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_tuba.qc;h=c9cfdc4a49951c1f848394f1c727132717bb5490;hb=311e8cc46c69cd2414db2efbf6c911915a980e88;hp=243b32b20e2b0bdbb3b787dec2275f6bba515d79;hpb=481667b4c4389cd5bb01b88f1ccab09fa4735d40;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_tuba.qc b/qcsrc/server/w_tuba.qc index 243b32b20..c9cfdc4a4 100644 --- a/qcsrc/server/w_tuba.qc +++ b/qcsrc/server/w_tuba.qc @@ -83,13 +83,14 @@ float W_Tuba_NoteSendEntity(entity to, float sf) WriteCoord(MSG_ENTITY, self.origin_x); WriteCoord(MSG_ENTITY, self.origin_y); WriteCoord(MSG_ENTITY, self.origin_z); + WriteByte(MSG_ENTITY, self.owner != to); } return TRUE; } void W_Tuba_NoteThink() { - float needchange, dist_mult; + float dist_mult; float vol0, vol1; vector dir0, dir1; vector v; @@ -102,7 +103,6 @@ void W_Tuba_NoteThink() } self.nextthink = time; dist_mult = cvar("g_balance_tuba_attenuation") / cvar("snd_soundradius"); - needchange = 0; FOR_EACH_REALCLIENT(e) if(e != self.owner) { @@ -131,7 +131,7 @@ void W_Tuba_Attack(float hittype) { vector o; float c, n; - W_SetupShot(self, FALSE, 2, "", cvar("g_balance_tuba_damage")); + W_SetupShot(self, FALSE, 2, "", 0, cvar("g_balance_tuba_damage")); if(self.tuba_notecount) { self.tuba_notecount = FALSE; @@ -257,11 +257,11 @@ float w_tuba(float req) } 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; }