Esempio n. 1
0
        private void svc_serverinfo(BitBuffer bb)
        {
            var version = bb.ReadInt16();

            bb.ReadInt32();
            bb.ReadBoolean();
            bb.ReadBoolean();
            bb.ReadInt32();
            bb.ReadInt16();
            if (version < 18)
            {
                bb.ReadBits(32);
            }
            else
            {
                bb.ReadInt32();
                bb.ReadInt32();
                bb.ReadInt32();
                bb.ReadInt32();
            }
            bb.ReadByte();
            bb.ReadByte();
            bb.ReadSingle();
            bb.ReadByte();

            bb.ReadString();
            bb.ReadString();
            bb.ReadString();
            bb.ReadString();
        }
Esempio n. 2
0
        private void net_setconvar(BitBuffer bb)
        {
            int n = (int)bb.ReadUnsignedBits(8);

            while (n-- > 0)
            {
                bb.ReadString();
                bb.ReadString();
            }
        }
Esempio n. 3
0
        private void svc_classinfo(BitBuffer bb)
        {
            var n  = bb.ReadBits(16);
            var cc = bb.ReadBoolean();

            if (!cc)
            {
                while (n-- > 0)
                {
                    int bitCount = (int)Math.Log(n, 2) + 1;
                    bb.ReadBits(bitCount);
                    bb.ReadString();
                    bb.ReadString();
                }
            }
        }
Esempio n. 4
0
 private void net_file(BitBuffer bb)
 {
     bb.ReadBits(32);
     bb.ReadString();
     bb.ReadBoolean();
     bb.ReadBoolean();
 }
Esempio n. 5
0
        private void svc_createstringtable(BitBuffer bb)
        {
            bb.ReadString();             // table name;
            var m = bb.ReadBits(16);     // max entries

            bb.SeekBits((int)Math.Log(m, 2) + 1);
            var n = bb.ReadBits(20);             // Length in bits
            var f = bb.ReadBoolean();            // fixed size?

            if (f)
            {
                bb.ReadBits(12);                // size
                bb.ReadBits(4);                 // bits
            }

            bb.ReadBoolean();             // compressed
            bb.SeekBits(n);
        }
Esempio n. 6
0
 private void svc_getcvarvalue(BitBuffer bb)
 {
     bb.ReadBits(32);
     bb.ReadString();
 }
Esempio n. 7
0
 private void svc_voiceinit(BitBuffer bb)
 {
     bb.ReadString();
     bb.ReadBits(8);
 }
Esempio n. 8
0
 private void svc_print(BitBuffer bb)
 {
     bb.ReadString();
 }
Esempio n. 9
0
 private void net_stringcmd(BitBuffer bb)
 {
     bb.ReadString();
 }
Esempio n. 10
0
 private void net_disconnect(BitBuffer bb)
 {
     bb.ReadString();
 }