We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41fd7d4 commit 232aa2eCopy full SHA for 232aa2e
protocolflow.md
@@ -0,0 +1,31 @@
1
+This document describes the general flow of the protocol,
2
+ S is server, C is (all) client(s) and
3
+ \* means all clients including self
4
+
5
+# Map transfer
6
+```
7
+MapStart (S) -> C
8
+MapChunk (S) -> C (sent until all chunks sent, chunks are 1024*1024 bytes)
9
+ExistingPlayer (S) -> C (sends one for each connected or connecting(?) players)
10
+StateData (S) -> C
11
12
13
+# Respawn
14
15
+CreatePlayer (S) -> C*
16
17
18
+# Team change
19
20
+ChangeTeam (C) -> S
21
+KillAction (S) -> C*
22
23
24
+# Weapon Change
25
26
+ChangeWeapon (C) -> S
27
28
29
30
+# After StateData
31
+The StateData packet marks the end of the map and player transfer meaning it can be any of the other packets (mostly inputs and WorldUpdate)
0 commit comments