return false;
if (IN_SQUAD(player))
- {
Send_Notification(NOTIF_ONE_ONLY, player, MSG_CENTER, CENTER_BR_JOIN_DEAD);
- if(IS_REAL_CLIENT(player) && !player.br_squad.br_squad_dead)
- {
- SpectateNext(player);
- TRANSMUTE(Spectator, player);
- }
- else
- {
- TRANSMUTE(Observer, player);
- }
- }
else
- {
Send_Notification(NOTIF_ONE_ONLY, player, MSG_CENTER, CENTER_BR_JOIN_LATE);
- TRANSMUTE(Observer, player);
- }
+
+ TRANSMUTE(Observer, player);
}
MUTATOR_HOOKFUNCTION(br, MakePlayerObserver)
UpdatePlayerSounds(e);
}
+bool SpectateNext(entity this);
+
/** putting a client as observer in the server */
void PutObserverInServer(entity this, bool is_forced)
{
if (CS(this).just_joined)
CS(this).just_joined = false;
+
+ // force members of alive squads to spectate another squadmate
+ if(IS_REAL_CLIENT(this) && IN_SQUAD(this) && !this.br_squad.br_squad_dead)
+ {
+ SpectateNext(this);
+ TRANSMUTE(Spectator, this);
+ }
}
int player_getspecies(entity this)