Commentary configuration file
The commentary system is largely unknown. The current revision of this article reflects data gathered from Lost Coast's commentary.
This file is in Valve's 'configuration file' format.
Commentary root section
Name: Commentary
This is the root section for commentary.
Entity section
Name: entity
Parent: "commentary"
These are individual commentary entities. This element can be used more than once to add multiple commentary points to a level.
Commentary entity details
Parent: "entity"
"classname" — Type of entity to display (usually point_commentary_node)
"origin" — Origin of the item (x y z hammer position notation)
"commentaryfile" — WAV file to play
"commentaryfile_nohdr" — WAV file to play if HDR is disabled (will play above if not specified) (optional)
"speakers" — The name of the speaker(s)
"targetname" — Name of the entity
"angles" — (x y z hammer rotation notation) (unknown) (optional)
Start/finish commands
Parent: "entity"
"precommands" — Console commands to run before commentary (optional)
"postcommands" — Console commands to run after commentary (optional)
Connections section
Name: "connections"
Parent: entity
Triggers attached to this entity. Optional.
"OnCommentaryStarted" — Triggers to fire when commentary is started (related to point_commentary_node)
"OnCommentaryStopped" — Triggers to fire when commentary is finished (related to point_commentary_node)
Moving the camera
"viewposition" — Name of entity (unknown) (optional)
"viewtarget" — Name of entity (unknown) (optional)
Example from Lost Coast
Below is an example from the Lost Coast's commentary to show the simple format of the file.
Commentary { entity { "classname" "point_commentary_node" "origin" "1213.953735 4787.380371 2356.031250" "angles" "0 90 0" "commentaryfile" "#lostcoast\commentary\comm_tone.wav" "speakers" "Chris Green" "targetname" "comm_node_9" "connections" { "OnCommentaryStarted" "comm_clientcommand,Command,mat_show_histogram 1,42,-1" "OnCommentaryStopped" "comm_clientcommand,Command,mat_show_histogram 0,0,-1" } } }