Skip to content

demo.proto

CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · schema format 2.2

Group: DemoMessages: 20 top-level, 28 totalEnums: 1 top-level, 1 total

Imports: none

Wire ids

Every message in this file that a wire-id enum constant maps to, by the join rule described on the Protobufs index.

Enums

EDemoCommands

Schema entity: EDemoCommands

NameNumberMessage
DEM_Error-1
DEM_Stop0CDemoStop
DEM_FileHeader1CDemoFileHeader
DEM_FileInfo2CDemoFileInfo
DEM_SyncTick3CDemoSyncTick
DEM_SendTables4CDemoSendTables
DEM_ClassInfo5CDemoClassInfo
DEM_StringTables6CDemoStringTables
DEM_Packet7CDemoPacket
DEM_SignonPacket8
DEM_ConsoleCmd9CDemoConsoleCmd
DEM_CustomData10CDemoCustomData
DEM_CustomDataCallbacks11CDemoCustomDataCallbacks
DEM_UserCmd12CDemoUserCmd
DEM_FullPacket13CDemoFullPacket
DEM_SaveGame14CDemoSaveGame
DEM_SpawnGroups15CDemoSpawnGroups
DEM_AnimationData16CDemoAnimationData
DEM_AnimationHeader17CDemoAnimationHeader
DEM_Recovery18CDemoRecovery
DEM_Max19
DEM_IsCompressed64

Messages

CDemoFileHeader

Wire id: EDemoCommands.DEM_FileHeader = 1

FieldNumberLabelTypeDefaultDescription
demo_file_stamp1requiredstring
patch_version2optionalint32
server_name3optionalstring
client_name4optionalstring
map_name5optionalstring
game_directory6optionalstring
fullpackets_version7optionalint32
allow_clientside_entities8optionalbool
allow_clientside_particles9optionalbool
addons10optionalstring
demo_version_name11optionalstring
demo_version_guid12optionalstring
build_num13optionalint32
game14optionalstring
server_start_tick15optionalint32

CGameInfo

Referenced by (1): CDemoFileInfo

FieldNumberLabelTypeDefaultDescription
dota4optionalCGameInfo.CDotaGameInfo
cs5optionalCGameInfo.CCSGameInfo

CGameInfo.CDotaGameInfo

Referenced by (1): CGameInfo

FieldNumberLabelTypeDefaultDescription
match_id1optionaluint64
game_mode2optionalint32
game_winner3optionalint32
player_info4repeatedCGameInfo.CDotaGameInfo.CPlayerInfo
leagueid5optionaluint32
picks_bans6repeatedCGameInfo.CDotaGameInfo.CHeroSelectEvent
radiant_team_id7optionaluint32
dire_team_id8optionaluint32
radiant_team_tag9optionalstring
dire_team_tag10optionalstring
end_time11optionaluint32

CGameInfo.CDotaGameInfo.CPlayerInfo

Referenced by (1): CGameInfo.CDotaGameInfo

FieldNumberLabelTypeDefaultDescription
hero_name1optionalstring
player_name2optionalstring
is_fake_client3optionalbool
steamid4optionaluint64
game_team5optionalint32

CGameInfo.CDotaGameInfo.CHeroSelectEvent

Referenced by (1): CGameInfo.CDotaGameInfo

FieldNumberLabelTypeDefaultDescription
is_pick1optionalbool
team2optionaluint32
hero_id3optionalint32

CGameInfo.CCSGameInfo

Referenced by (1): CGameInfo

FieldNumberLabelTypeDefaultDescription
round_start_ticks1repeatedint32

CDemoFileInfo

Wire id: EDemoCommands.DEM_FileInfo = 2

FieldNumberLabelTypeDefaultDescription
playback_time1optionalfloat
playback_ticks2optionalint32
playback_frames3optionalint32
game_info4optionalCGameInfo

CDemoPacket

Wire id: EDemoCommands.DEM_Packet = 7

Referenced by (1): CDemoFullPacket

FieldNumberLabelTypeDefaultDescription
data3optionalbytes

CDemoFullPacket

Wire id: EDemoCommands.DEM_FullPacket = 13

FieldNumberLabelTypeDefaultDescription
string_table1optionalCDemoStringTables
packet2optionalCDemoPacket

CDemoSaveGame

Wire id: EDemoCommands.DEM_SaveGame = 14

FieldNumberLabelTypeDefaultDescription
data1optionalbytes
steam_id2optionalfixed64
signature3optionalfixed64
version4optionalint32

CDemoSyncTick

Wire id: EDemoCommands.DEM_SyncTick = 3

(no fields)

CDemoConsoleCmd

Wire id: EDemoCommands.DEM_ConsoleCmd = 9

FieldNumberLabelTypeDefaultDescription
cmdstring1optionalstring

CDemoSendTables

Wire id: EDemoCommands.DEM_SendTables = 4

FieldNumberLabelTypeDefaultDescription
data1optionalbytes

CDemoClassInfo

Wire id: EDemoCommands.DEM_ClassInfo = 5

FieldNumberLabelTypeDefaultDescription
classes1repeatedCDemoClassInfo.class_t

CDemoClassInfo.class_t

Referenced by (1): CDemoClassInfo

FieldNumberLabelTypeDefaultDescription
class_id1optionalint32
network_name2optionalstring
table_name3optionalstring

CDemoCustomData

Wire id: EDemoCommands.DEM_CustomData = 10

FieldNumberLabelTypeDefaultDescription
callback_index1optionalint32
data2optionalbytes

CDemoCustomDataCallbacks

Wire id: EDemoCommands.DEM_CustomDataCallbacks = 11

FieldNumberLabelTypeDefaultDescription
save_id1repeatedstring

CDemoAnimationHeader

Wire id: EDemoCommands.DEM_AnimationHeader = 17

FieldNumberLabelTypeDefaultDescription
entity_id1optionalsint32
tick2optionalint32
data3optionalbytes

CDemoAnimationData

Wire id: EDemoCommands.DEM_AnimationData = 16

FieldNumberLabelTypeDefaultDescription
entity_id1optionalsint32
start_tick2optionalint32
end_tick3optionalint32
data4optionalbytes
data_checksum5optionalint64

CDemoStringTables

Wire id: EDemoCommands.DEM_StringTables = 6

Referenced by (1): CDemoFullPacket

FieldNumberLabelTypeDefaultDescription
tables1repeatedCDemoStringTables.table_t

CDemoStringTables.items_t

Referenced by (1): CDemoStringTables.table_t

FieldNumberLabelTypeDefaultDescription
str1optionalstring
data2optionalbytes

CDemoStringTables.table_t

Referenced by (1): CDemoStringTables

FieldNumberLabelTypeDefaultDescription
table_name1optionalstring
items2repeatedCDemoStringTables.items_t
items_clientside3repeatedCDemoStringTables.items_t
table_flags4optionalint32

CDemoStop

Wire id: EDemoCommands.DEM_Stop = 0

(no fields)

CDemoUserCmd

Wire id: EDemoCommands.DEM_UserCmd = 12

FieldNumberLabelTypeDefaultDescription
cmd_number1optionalint32
data2optionalbytes

CDemoSpawnGroups

Wire id: EDemoCommands.DEM_SpawnGroups = 15

FieldNumberLabelTypeDefaultDescription
msgs3repeatedbytes

CDemoSpawnGroupsHLTVBroadcast

FieldNumberLabelTypeDefaultDescription
data1optionalbytes

CDemoRecovery

Wire id: EDemoCommands.DEM_Recovery = 18

FieldNumberLabelTypeDefaultDescription
initial_spawn_group1optionalCDemoRecovery.DemoInitialSpawnGroupEntry
spawn_group_message2optionalbytes

CDemoRecovery.DemoInitialSpawnGroupEntry

Referenced by (1): CDemoRecovery

FieldNumberLabelTypeDefaultDescription
spawngrouphandle1optionaluint32
was_created2optionalbool

Reference graph

Message reference graph (11 edges)
flowchart LR
    n0["CGameInfo"]
    n1["CGameInfo.CDotaGameInfo"]
    n0 --> n1
    n2["CGameInfo.CCSGameInfo"]
    n0 --> n2
    n3["CGameInfo.CDotaGameInfo.CPlayerInfo"]
    n1 --> n3
    n4["CGameInfo.CDotaGameInfo.CHeroSelectEvent"]
    n1 --> n4
    n5["CDemoFileInfo"]
    n5 --> n0
    n6["CDemoFullPacket"]
    n7["CDemoStringTables"]
    n6 --> n7
    n8["CDemoPacket"]
    n6 --> n8
    n9["CDemoClassInfo"]
    n10["CDemoClassInfo.class_t"]
    n9 --> n10
    n11["CDemoStringTables.table_t"]
    n7 --> n11
    n12["CDemoStringTables.items_t"]
    n11 --> n12
    n13["CDemoRecovery"]
    n14["CDemoRecovery.DemoInitialSpawnGroupEntry"]
    n13 --> n14