예제 #1
0
        public PossessSession(Client player, Client victim) : base(player)
        {
            player.Queue.Queue(ChangeGameState.ChangeGameMode(GameMode.Creative));
            var et = new PlayerPositionLookServer(victim.Session.Position);

            et.Yaw   = victim.Session.Yaw;
            et.Pitch = victim.Session.Pitch;
            player.Queue.Queue(et);

            this.victim = victim;
            victim.Possess(this);
        }
예제 #2
0
        public override WorldSession Join(Client player)
        {
            ConstructSession cs = new TheConstructSession(player);

            Join(cs, player);
            player.Queue.Queue(new TimeUpdate(6000));
            player.TellSystem(Chat.White, "Welcome to the Construct");
            player.TellSystem(Chat.White, "Type: " + Chat.Blue + "/blue" + Chat.White + " to return");
            player.Queue.Queue(new PlayerAbilitiesServer());
            player.Queue.Queue(ChangeGameState.ChangeGameMode(GameMode.Creative));
            return(cs);
        }