StopPlayback() public static method

CL_StopPlayback Called when a demo file runs out, or the user starts a game
public static StopPlayback ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Host_Stopdemo_f
 /// Return to looping demos
 /// </summary>
 private static void Stopdemo_f()
 {
     if (Client.cls.state == cactive_t.ca_dedicated)
     {
         return;
     }
     if (!Client.cls.demoplayback)
     {
         return;
     }
     Client.StopPlayback();
     Client.Disconnect();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Host_Connect_f
        /// User command to connect to server
        /// </summary>
        private static void Connect_f()
        {
            Client.cls.demonum = -1;            // stop demo loop in case this fails
            if (Client.cls.demoplayback)
            {
                Client.StopPlayback();
                Client.Disconnect();
            }
            string name = Cmd.Argv(1);

            Client.EstablishConnection(name);
            Reconnect_f();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Host_Stopdemo_f
        /// Return to looping demos
        /// </summary>
        static void Stopdemo_f()
        {
            if (Client.Cls.state == ClientActivityState.Dedicated)
            {
                return;
            }

            if (!Client.Cls.demoplayback)
            {
                return;
            }

            Client.StopPlayback();
            Client.Disconnect();
        }