Server-side demos allow a server to record a complete game to a file and then play it back later. Recording and playback are both done on the server. When a demo is being played, every player on the server will be forced into the spectators team. They will be able to spectate all players which were recorded in the demo.
Now, to set up server-side demos on your server, you need 2 things: A patched game.qvm, and a tremded with server-demo support.
So far, only tremfusion and fsm-trem have server-side demo support. You will need to use one of these two in order to have server-side demos.
I have provided a patched version of Lakitu7's qvm with server-side demo support, but the patch can be applied to any other qvm.
Lakitu7's qvm with server-side demosPatchCvars:
sv_autodemo: Set to 1 to automatically record a demo at the start of each map
sv_demostate: Current demo state: 0 = none, 1 = playing, 2 = recording
sv_democlients: Must be >= to the value of sv_maxclients used when recording a demo in order to play it
Commands:
demo_record <name>: Records a demo
demo_stoprecord: Stops recording a demo
demo_play <name>: Plays a demo
demo_stop: Stops playing a demo
If you would like admins to be able to record and play demos, you can make commands in admin.dat by following
this tutorial