This tool automatically start a recording whenever someone is on your server. It makes sure to stop the recording before the level is being changed. CounterStrike 2 does currently crash if the HLTV recording is not stopped before the map is changed regardless of what caused a map change. This tool will make sure to stop the recording first and afterwards change the map.
- check server state on plugin hot-reload
- enables the HLTV before starting to record
- stops recording when last player left the server
- starts recording when first player joins the server
- disables transmit of HLTV entity to players to avoid one possible way to detect recording
- Download and extract the latest release from the GitHub releases page.
- Move the "DemoRecorder" folder to the
/addons/counterstrikesharp/plugins/directory. - Restart the server.
Updating is even easier: simply overwrite all plugin files and they will be reloaded automatically. To automate updates please use our CS2 Update Manager.
This plugin automatically creates a readable JSON configuration file. This configuration file can be found in /addons/counterstrikesharp/configs/plugins/DemoRecorder/DemoRecorder.json.
{
"enabled": true,
"demo_folder": "",
"changelevel_delay": 3,
"minimum_players_for_recording": 1,
"disable_recording_during_warmup": false,
"transmit_hltv_entity": false,
"hltv_name": "visit Counterstrike.Party",
"ConfigVersion": 1
}Config will be read on map start to update all parameters without the need to reload the plugin.
Disabled this plugin without removing it.
Folder where to save recorded demos to. A default absolute path will be generated if this value is empty or does not exist. Please allow the plugin to generate this path first and change it afterwards.
Minimum delay before map will be changed when using a map-change command. Should be at least one second to allow SourceTV to stop recording properly.
Minimum players necessary to start recording.
Whether or not to disable recording during warmup period.
An experimental feature to not send the HLTV entity to players to avoid detection whether a demo is being recorded right now. Does not complete hide the fact that a SourceTV is currently active but may helps to avoid detection of whether we currently record or not.
Change the name of the SourceTV. Simply changes "tv_name".
Reloads the plug-in configuration.
Enables the plug-in and saves this state to the configuration.
Disables the plug-in and saves this state to the configuration.
Clone the project:
git clone https://github.com/Kandru/cs2-demo-recorder.gitGo to the project directory
cd cs2-demo-recorderInstall dependencies
dotnet restoreBuild debug files (to use on a development game server)
dotnet buildBuild release files (to use on a production game server)
dotnet publishTODO
