garrysmod-requests icon indicating copy to clipboard operation
garrysmod-requests copied to clipboard

A new library for SourceTV

Open RaphaelIT7 opened this issue 1 year ago • 0 comments

Details

Currently, there are no functions for SourceTV, and it would be useful if there would be at least a few. The name of the library could maybe be hltv or sourcetv. Functions that would be useful:

  • IsActive() (CHLTVServer::IsActive())
  • IsRecording() (CHLTVServer::m_DemoRecorder.IsRecording())
  • IsMasterProxy (CHLTVServer::IsMasterProxy)
  • IsRelay (CHLTVServer::IsTVRelay)

Functions that could be useful:

  • GetClientCount (CHLTVServer::GetClientCount)
  • GetHLTVSlot (CHLTVServer::GetHLTVSlot)
  • Start (HLTV Setup)
  • Stop (CHLTVServer::Shutdown)
  • Relay (tv_relay)
  • StartRecord (tv_record | Could return a bool to tell if it started or failed)
  • StopRecord (tv_stoprecord)

Start and Relay should probably be locked behind a command line option like hltv_lua

RaphaelIT7 avatar Feb 24 '24 04:02 RaphaelIT7