View Single Post
Author Message
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-15-2016 , 10:48   SourceTV Manager
Reply With Quote #1

SourceTV Manager

Interface to interact with the SourceTV server from SourcePawn.
https://github.com/peace-maker/sourcetvmanager

Lets you access SourceTV servers and interact with the spectators as well as handle demo recording.

API
There are a few natives and forwards in the include file for
  • Basic SourceTV information (stats, delay, active)
  • Interacting with spectators (chat/console messages, kick, ip, name)
  • Forcing camera shots on the director
  • Demo recording (filename, recording tick, print message to demo console)

Steam authentication
By default, SourceTV spectators aren't authenticated with Steam. This extension adds a
tv_force_steamauth convar to enable authentication on spectator clients.
Currently this prevents SourceTV relay proxy clients from connecting though

"status" command in demos
There is special effort done in this extension to have the "status" output recorded in SourceTV demos, so you can easily identify players when watching the demo. Just do
PHP Code:
FakeClientCommand(SourceTV_GetBotIndex(), "status"); 
I've only tested this in CS:GO and CS:S, but the TF2 gamedata was the same as CS:S, so odds are good it's working on all OBV games.

Download

Nightly build

Sourcecode
Gamedata

Look here for examples how to use the natives.

Thanks to GoD-Tony and asherkin.
__________________

Last edited by Peace-Maker; 05-07-2021 at 08:39. Reason: Added gamedata link
Peace-Maker is offline