Skip to content

Commit c5d57c0

Browse files
authored
Update Protobuf and add protos for CS2 (alliedmodders#176)
* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
1 parent e6dc3f8 commit c5d57c0

File tree

3,189 files changed

+984651
-514603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,189 files changed

+984651
-514603
lines changed
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import "netmessages.proto";
2+
3+
message C2S_CONNECT_Message {
4+
optional uint32 host_version = 1;
5+
optional uint32 auth_protocol = 2;
6+
optional uint32 challenge_number = 3;
7+
optional fixed64 reservation_cookie = 4;
8+
optional bool low_violence = 5;
9+
optional bytes encrypted_password = 6;
10+
repeated .CCLCMsg_SplitPlayerConnect splitplayers = 7;
11+
optional bytes auth_steam = 8;
12+
optional string challenge_context = 9;
13+
optional sint32 use_snp = 10;
14+
}
15+
16+
message C2S_CONNECTION_Message {
17+
optional string addon_name = 1;
18+
optional bool use_snp = 2;
19+
}

common/engine_gcmessages.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import "google/protobuf/descriptor.proto";
2+
3+
message CEngineGotvSyncPacket {
4+
optional uint64 match_id = 1;
5+
optional uint32 instance_id = 2;
6+
optional uint32 signupfragment = 3;
7+
optional uint32 currentfragment = 4;
8+
optional float tickrate = 5;
9+
optional uint32 tick = 6;
10+
optional float rtdelay = 8;
11+
optional float rcvage = 9;
12+
optional float keyframe_interval = 10;
13+
optional uint32 cdndelay = 11;
14+
}

0 commit comments

Comments
 (0)