Esempio n. 1
0
        public virtual void JoinAsSpectator(ArenaClient client)
        {
            client.KillCharacter();
            if (!players.Contains(client))
            {
                players.Add(client);
            }

            client.SetTeamID(TeamIdent.GMSpectator);
            if (SpawnWorld != null && Phase <= GamePhase.WarmUp)
            {
                client.SetToSpectator(SpawnWorld, Scenario.SpecPoint.Position, Scenario.SpecPoint.Angles);
            }
            else
            {
                client.SetToSpectator(World, Scenario.SpawnPos.Position, Scenario.SpawnPos.Angles);
            }
        }