Exemple #1
0
        public static void JoinSpectate(ArenaClient client)
        {
            PosAng specPA = activeDef.SpecPA;

            foreach (var player in players)
            {
                if (player.Character != null && player.Character.IsSpawned)
                {
                    specPA             = new PosAng(player.Character.GetPosition(), player.Character.GetAngles());
                    specPA.Position.Y += 100;
                    break;
                }
            }
            client.SetToSpectator(activeWorld, specPA.Position, specPA.Angles);
        }