View Single Post
Author Message
StevoTVR
Senior Member
Join Date: Oct 2008
Old 05-09-2009 , 16:20   Auto SourceTV Recorder
Reply With Quote #1

Auto Recorder

Automates SourceTV demo recording based on player count and time of day. Also allows admins to manually record. This is useful if you want to keep records of suspected cheaters or other problem players, but you don't want to waste space on off times.

Console Variables

Code:
// This file was auto-generated by SourceMod (v1.8.0.5928)
// ConVars for plugin "autorecorder.smx"


// Enable automatic recording
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_autorecord_enable "1"

// If 1, continue recording until the map ends
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_autorecord_finishmap "1"

// Ignore bots in the player count
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_autorecord_ignorebots "1"

// Minimum players on server to start recording
// -
// Default: "4"
// Minimum: "0.000000"
sm_autorecord_minplayers "4"

// Path to store recorded demos
// -
// Default: "."
sm_autorecord_path "."

// Hour in the day to start recording (0-23, -1 disables)
// -
// Default: "-1"
sm_autorecord_timestart "-1"

// Hour in the day to stop recording (0-23, -1 disables)
// -
// Default: "-1"
sm_autorecord_timestop "-1"


Console Commands
  • sm_record: Starts a SourceTV demo
  • sm_stoprecord: Stops recording the current SourceTV demo

Notes
  • Requires SourceTV to be enabled
  • Demos are named similar to SourceTV auto demos (auto-YYYYMMDD-hhmmss-map.dem)
Changelog
  • 1.0.0 - 05/09/2009
    • Initial Release
  • 1.1.0 - 05/11/2009
    • Added path cvar to control where demos are stored
    • Changed manual recording to override automatic recording
    • Added seconds to demo names
  • 1.1.1 - 05/04/2016
    • Changed demo file names to replace slashes with hyphens [ajmadsen]
  • 1.2.0 - 08/26/2016
    • Now ignores bots in the player count by default
    • The SourceTV client is now always ignored in the player count
    • Added sm_autorecord_ignorebots to control whether to ignore bots
    • Now checks the status of the server immediately when a setting is changed
  • 1.3.0 - 06/21/2017
    • Fixed minimum player count setting being off by one
    • Fixed player counting code getting out of range
    • Updated source code to the new syntax
Attached Files
File Type: sp Get Plugin or Get Source (autorecorder.sp - 5681 views - 6.7 KB)

Last edited by StevoTVR; 06-22-2017 at 00:36. Reason: More descriptive title
StevoTVR is offline