Esempio n. 1
0
 public static void RunFrame()
 {
     if (console.Active)
     {
         SysW.GrabMouseCursor(false); usercmdGen.InhibitUsercmd(INHIBIT.ASYNC, true);
     }
     else
     {
         SysW.GrabMouseCursor(true); usercmdGen.InhibitUsercmd(INHIBIT.ASYNC, false);
     }
     client.RunFrame();
     server.RunFrame();
 }
Esempio n. 2
0
        void Session_Hitch_f(CmdArgs args)
        {
            var sw = soundSystem.PlayingSoundWorld;

            if (sw != null)
            {
                soundSystem.SetMute(true); sw.Pause(); ISystem.EnterCriticalSection();
            }
            SysW.Sleep(args.Count == 2 ? int.Parse(args[1]) : 100);
            if (sw != null)
            {
                ISystem.LeaveCriticalSection(); sw.UnPause(); soundSystem.SetMute(false);
            }
        }