]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show a "despawn" particle effect when a player disconnects/spectates
authorMario <zacjardine@y7mail.com>
Fri, 14 Nov 2014 05:48:56 +0000 (16:48 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 14 Nov 2014 05:48:56 +0000 (16:48 +1100)
qcsrc/server/cl_client.qc

index b3c6b65775d5121c8a6394cd199b51ff3b08363a..84657d6f6edba2fa1b6411420e400fa496954de3 100644 (file)
@@ -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();