]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't let respawn sound move with player (attach it to world instead)
authorRudolf Polzer <divverent@xonotic.org>
Mon, 2 Apr 2012 11:08:17 +0000 (13:08 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 2 Apr 2012 11:08:17 +0000 (13:08 +0200)
qcsrc/server/cl_client.qc

index f34e22b0d9a15224940df81013b852c705091e33..38007434e58b656527bf1ec01576ddd38186df10 100644 (file)
@@ -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 ();
        }