SourceTV™️
By Asterisk • 2 minutes read •
I’ve added a nifty little thing to the server called SourceTV. Normally, it’s used as a unique spectating system for Source dedicated servers. I’ve disabled that and use it for a secondary feature, automatic demo recording.
By default the autorecording system is garbage. It records all the time, even if the server is empty!
Thankfully, due to the magic of Sourcemod, StevoTVR made an autorecording plugin that’s a little more customizeable, including how many players trigger a recording and where to save the demos.
The config for such a basic setup looks like this:
autoexec.cfg (yes, even on a server, this must be run before map load)
tv_enable 1
tv_maxclients 0
tv_title "Demo Recorder"
And the startup flag -tvmasteronly to prevent the server from being used as a SourceTV relay.

What are demos, even?
.dem files are magical, because they’re not videos. They’re like a set of instructions for the game to perfectly recreate the actions of you, other players, projectiles, entities, etc on that specific map. That’s what it records.
You can play them back in the same Source title you recorded them in. (demoui) You’re able to change the demo, like moving the camera around or smoothing it, changing perspectives or players, and more (since it’s a perfect recreation running on the same map normally).
Why?
This system means clips will be recorded when I’m not there and can be from anybody’s perspective (no UI though).
They also allow you to get different camera angles on people’s plays. You can also use demos to sniff out cheating and toxic behavior, as long as you know exactly when and where it happened (combined with chat logs from HLStats).