/* =========== ClientDisconnect called when a player disconnects from a server ============ */ void() ClientDisconnect = { local float player_c; self.state = STATE_CHOOSING; self.health = self.arena = 0; self.chosenteam = self.team = self.team2 = TEAM_SPECTATOR; player_c = CountPlayers(); player_c = player_c - 1; // let everyone else know bprint (PRINT_HIGH, self.netname); bprint (PRINT_HIGH, " left the game with "); bprint (PRINT_HIGH, ftos(self.frags)); bprint (PRINT_HIGH, " frags "); bprint (PRINT_HIGH, "(Clients = "); bprint (PRINT_HIGH, ftos(player_c)); bprint (PRINT_HIGH, ")\n"); sound (self, CHAN_BODY, "player/tornoff2.wav", 1, ATTN_NONE); set_suicide_frame (); };