예제 #1
0
        public virtual void serverCmdMissionStartPhase3Ack(GameConnection client, string seq)
        {
            if (seq != sGlobal["$missionSequence"] || !bGlobal["$MissionRunning"])
                return;
            if (client["currentPhase"].AsDouble() != 2.0)
                return;

            client["currentPhase"] = "3";
            // Server is ready to drop into the game

            if (iGlobal["$Pref::Server::MinPlayers"] > 1)

                console.Call("PlayerReady", new string[] {client});
            else
                {
                client.startMission();
                client.onClientEnterGame();
                }
        }