Understand the DEM_Packet structure
mainThe DEM_Packet is the most common command type in a demo file. It is decoded by reading a bitstream where each message consists of a message type and a size.
Main message types within a DEM_Packet include:
svc_PacketEntities: Contains the majority of entity data (coordinates, health, etc.). Note that these only send changes; if a value hasn't changed, it won't be updated in the current tick.GE_Source1LegacyGameEventList: Provides the decoding schema for game events. This must be processed before any game events can be decoded.GE_Source1LegacyGameEvent: Key-value pair events triggered by game actions (e.g., weapon fire).svc_CreateStringTable/svc_UpdateStringTable: Contains baseline/default values for entities (e.g., default player health).