OnDemoRecordingStart
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnDemoRecordingStart( string text, BasePlayer instance )
{
Puts( "OnDemoRecordingStart works!" );
}
Location
- BasePlayer::StartDemoRecording()
csharp
//---
if (this.net.connection.IsRecording)
{
return;
}
string text = string.Format("demos/{0}/{1:yyyy-MM-dd-hhmmss}.dem", this.UserIDString, DateTime.Now);
if (Interface.CallHook("OnDemoRecordingStart", text, this) != null)
{
return;
}
Debug.Log(this.ToString() + " recording started: " + text);
this.net.connection.StartRecording(text, new ConVar.Demo.Header
//---