Skip to content

Commit 232aa2e

Browse files
authored
Create protocolflow.md
1 parent 41fd7d4 commit 232aa2e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Diff for: protocolflow.md

+31
Original file line numberDiff line numberDiff line change
@@ -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+
KillAction (S) -> C*
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

Comments
 (0)