From: Rudolf Polzer Date: Mon, 2 Apr 2012 11:08:17 +0000 (+0200) Subject: don't let respawn sound move with player (attach it to world instead) X-Git-Tag: xonotic-v0.7.0~348^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a57d2c442b32a9092c86e889e7e693279d30882;p=xonotic%2Fxonotic-data.pk3dir.git don't let respawn sound move with player (attach it to world instead) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index f34e22b0d..38007434e 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -867,9 +867,6 @@ void PutClientInServer (void) //stuffcmd(self, "chase_active 0"); //stuffcmd(self, "set viewsize $tmpviewsize \n"); - if (autocvar_g_spawnsound) - sound (self, CH_TRIGGER, "misc/spawn.wav", VOL_BASE, ATTN_NORM); - if(g_assault) { if(self.team == assault_attacker_team) centerprint(self, "You are attacking!"); @@ -921,6 +918,9 @@ void PutClientInServer (void) self.alivetime = time; antilag_clear(self); + + if (autocvar_g_spawnsound) + soundat(world, self.origin, CH_TRIGGER, "misc/spawn.wav", VOL_BASE, ATTN_NORM); } else if(self.classname == "observer") { PutObserverInServer (); }