Skip to content
madprof edited this page Sep 14, 2010 · 18 revisions

See code/client/cl_main.c for (most of) the code that is writing demo files. Each demo file has a “header” generated from the current client state in CL_Record_f(); this is followed by the actual network messages the client receives (starting with the first non-delta message?); messages are written by CL_WriteDemoMessage() which is called at the end of CL_PacketEvent(); each demo file has a “trailer” marking its end written by CL_StopRecording_f().

Header

Missing

Messages

Missing

Trailer

Just 8 bytes of 1 bits. Unverified

Clone this wiki locally