by divVerent » Sat Feb 17, 2007 4:48 pm
More exactly, a demo is a raw network dump of whatever the server sent. However, with each such packet, the current view angles are also stored as these are handled by the client. Actually, you could almost record client demos on the server or any other machine the packets pass through - just the view angles are not contained. One can easily read a pcap dump (created by tcpdump) and convert it to a demo file where the player's view always points in the same direction - and with some more work, you can make a working demo of the server's view of what the player did (that is, with lagged input).
So from what is IN the demo, you can't infer which keys were actually pressed. And adding that to demos would not be possible without making a new demo format.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again
You can vary the number of "MS", so you can clearly see it's MS which is causing it.