Originally Posted by
tobindax
In practice the absolute minimum is exchanged back and forth:
OUT:
- Your input (what keys you press) that's a very low amount of data
- (Possibly) where you think you are, at what state you are. That might help smoothing things over after lag.
IN:
- Where you are supposed to be based on what you sent before. That info will teleport you back where you are supposed to be after lag, for example.
- The coordinates of other players, other NPCs, their numbers, etc.
- Other related gameplay data needed, what damage you did, etc.
In general a lot of stuff are calculated by the client to smooth things over visually, but nothing gameplay related is accepted unless the server confirms it with its internal simulation. It has the final say and it's the ultimate governor. Otherwise cheating would be straightforward.