Go to file
2016-12-04 21:41:07 -07:00
.gitignore Update CS:GO gamedata 2016-08-15 23:21:04 +02:00
AMBuilder Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
AMBuildScript Initial commit of project files 2016-02-29 09:59:09 +01:00
commonhooks.cpp Fix OnSpectatorChatMessage to not include playername 2016-11-15 21:02:03 -07:00
commonhooks.h Add OnSpectatorChatMessage forwards to catch chat 2016-11-14 01:16:39 -06:00
configure.py Initial commit of project files 2016-02-29 09:59:09 +01:00
extension.cpp Add OnSpectatorChatMessage forwards to catch chat 2016-11-14 01:16:39 -06:00
extension.h Add OnSpectatorChatMessage forwards to catch chat 2016-11-14 01:16:39 -06:00
forwards.cpp Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
forwards.h Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
hltvclientwrapper.cpp Track spectators for each SourceTV instance seperately 2016-03-06 12:50:07 +01:00
hltvclientwrapper.h Track spectators for each SourceTV instance seperately 2016-03-06 12:50:07 +01:00
hltvdirectorwrapper.cpp Add natives to force a camera shot 2016-03-01 02:19:19 +01:00
hltvdirectorwrapper.h CSGO: Fix messages and director shot natives 2016-07-28 17:01:58 +02:00
hltvserverwrapper.cpp Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
hltvserverwrapper.h Add OnSpectatorChatMessage forwards to catch chat 2016-11-14 01:16:39 -06:00
ihltvdemorecorder_csgo.h Fix demo recording support for CS:GO 2016-07-07 16:27:46 +02:00
ihltvdemorecorder.h Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
LICENSE Initial commit 2016-02-29 09:52:26 +01:00
natives.cpp Add SourceTV_SetClientTVTitle native 2016-11-14 03:27:38 -06:00
natives.h Clean up some SDK calls to use SourceHook directly 2016-03-03 09:13:59 +01:00
PackageScript Initial commit of project files 2016-02-29 09:59:09 +01:00
README.md Update README 2016-11-14 03:43:11 -06:00
smsdk_config.h Bump version to 1.1 2016-11-15 21:47:37 -07:00
sourcetv_test.sp Update include and example plugin to transitional syntax 2016-11-15 23:17:53 -07:00
sourcetvmanager.games.txt Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
sourcetvmanager.inc Update include and example plugin to transitional syntax 2016-11-15 23:17:53 -07:00

SourceTV Manager

Interface to interact with the SourceTV server from SourcePawn.

This is a SourceMod extension providing an API for plugins to access the SourceTV server instance(s). Forum thread

API

There are natives and forwards to access

  • Basic SourceTV information (stats, delay, active)
  • Interacting with spectators (chat/console messages, kick, ip, name, tv title)
  • Forcing camera shots on the director
  • Demo recording (filename, recording tick, print message to demo console)

Have a look at the include file.

Steam authentication for spectators

The extension adds a convar tv_force_steamauth (defaults to 0) which lets you enable steam validation on SourceTV clients. Currently when this is enabled SourceTV relays are rejected.

status command fixes

There are several quirks around recording the status command output in a SourceTV demo. While this extension is running, you're going to be able to do

FakeClientCommand(SourceTV_GetBotIndex(), "status");

and have the output recorded in the demo. This can help quickly identifying the players in the demo while playing it back.

Note: Doesn't run on relay proxies yet.