Ejemplo n.º 1
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Protocol    = buf.ReadInt16();
     ServerCount = buf.ReadInt32();
     IsHltv      = buf.ReadBoolean();
     IsDedicated = buf.ReadBoolean();
     ClientCrc   = buf.ReadInt32();
     MaxClasses  = buf.ReadUInt16();
     MapCrc      = buf.ReadInt32();
     PlayerSlot  = buf.ReadByte();
     MaxClients  = buf.ReadByte();
     if (demo.Protocol == 4)
     {
         Unk = buf.ReadInt32();
     }
     else if (demo.NetworkProtocol == 24)
     {
         Unk = buf.ReadBits(96);
     }
     TickInterval    = buf.ReadSingle();
     OperatingSystem = buf.ReadChar();
     GameDir         = buf.ReadString();
     MapName         = buf.ReadString();
     SkyName         = buf.ReadString();
     HostName        = buf.ReadString();
     return(Task.CompletedTask);
 }
Ejemplo n.º 2
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     FromClient = buf.ReadByte();
     Proximity  = buf.ReadByte();
     Length     = buf.ReadUInt16();
     buf.SeekBits(Length);
     return(Task.CompletedTask);
 }
Ejemplo n.º 3
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     SignonState = buf.ReadByte();
     SpawnCount  = buf.ReadInt32();
     if (demo.Protocol == 4)
     {
         NumServerPlayers = buf.ReadInt32();
         var length = buf.ReadInt32();
         if (length > 0)
         {
             PlayerNetworkIds = buf.ReadBytes(length);
         }
         length = buf.ReadInt32();
         if (length > 0)
         {
             MapName = buf.ReadString(length);
         }
     }
     return(Task.CompletedTask);
 }
Ejemplo n.º 4
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     MessageType = buf.ReadByte();
     buf.SeekBits(buf.ReadBits(demo.Protocol == 4 ? 12 : 11));
     return(Task.CompletedTask);
 }
Ejemplo n.º 5
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     VoiceCodec = buf.ReadString();
     Quality    = buf.ReadByte();
     return(Task.CompletedTask);
 }