From: Mario Date: Fri, 14 Nov 2014 05:48:56 +0000 (+1100) Subject: Show a "despawn" particle effect when a player disconnects/spectates X-Git-Tag: xonotic-v0.8.0~150^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e58c45ae60668d74b15c7d35e883735aa6688e7;p=xonotic%2Fxonotic-data.pk3dir.git Show a "despawn" particle effect when a player disconnects/spectates --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index b3c6b6577..84657d6f6 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -138,6 +138,8 @@ void PutObserverInServer (void) entity spot; self.hud = HUD_NORMAL; + if(IS_PLAYER(self)) { pointparticles(particleeffectnum("spawn_event_neutral"), self.origin, '0 0 0', 1); } + spot = SelectSpawnPoint (TRUE); if(!spot) error("No spawnpoints for observers?!?\n"); @@ -1234,6 +1236,8 @@ void ClientDisconnect (void) return; } + if(IS_PLAYER(self)) { pointparticles(particleeffectnum("spawn_event_neutral"), self.origin, '0 0 0', 1); } + PlayerStats_AddGlobalInfo(self); CheatShutdownClient();