From: Rudolf Polzer Date: Wed, 22 Oct 2014 09:43:52 +0000 (+0200) Subject: Cut off CH_PLAYER_SINGLE sounds (i.e. lava and slime) when respawning. X-Git-Tag: xonotic-v0.8.0~174 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4f14e187eed72fc81aa829300f95a6d689cbced6;p=xonotic%2Fxonotic-data.pk3dir.git Cut off CH_PLAYER_SINGLE sounds (i.e. lava and slime) when respawning. --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 4ab1836e8..498e46453 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -524,6 +524,9 @@ void PutClientInServer (void) spawnevent.owner = self; Net_LinkEntity(spawnevent, FALSE, 0.5, SpawnEvent_Send); + // Cut off any still running player sounds. + stopsound(self, CH_PLAYER_SINGLE); + self.model = ""; FixPlayermodel(); self.drawonlytoclient = world;