08 Jan 11, 12:47AM
(07 Jan 11, 11:06PM)Fiz Wrote: I think the only reason it isn't done yet is the lack of documentation or examples on how that could be done and the fact that its in binary format.
A demo file is just a gzipped stream of packets, with a header at the start. readdemo() reads the data packet by packet and forwards it through enet to parsemessages() in clients2c.cpp, where the information is read from the packets using getint() and friends and is then processed.
Now you could just get in at readdemo(), but instead of passing the stuff through enet, you'd just take it apart right there.
Not easy , but possible - read the code :P