I made a small change of it, so we can use it our
iseries lan ;)
(Multiple servers sharing the same TF2 folder - which causes demo's to get overwritten)
It now has the option to record demos to a specific folder rather than in to the main tf2 folder.
Code changes are:
Code:
// Line 47 Add below
g_hPath = CreateConVar("sm_autorecord_path", ".", "If blank, records to tf2 folder");
Code:
// Lines 143 - 154 replace with:
if(GetConVarBool(g_hTvEnabled) && !g_bIsRecording)
{
decl String:sTime[16], String:sMap[32];
new String:sPath[128];
GetConVarString(g_hPath, sPath, sizeof(sPath));
FormatTime(sTime, sizeof(sTime), "%Y%m%d-%H%M", GetTime());
GetCurrentMap(sMap, sizeof(sMap));
ServerCommand("tv_record \"%s/auto-%s-%s\"", sPath, sTime, sMap);
g_bIsRecording = true;
LogMessage("Recording to %s/auto-%s-%s.dem", sPath, sTime, sMap);
}
Notes: This does no error checking if the folder/path doesn't exist. It should just work (tm)