Go to file
Peace-Maker c0f634005d Check IDemoRecorder pointer before use
If the pointer to the IDemoRecorder instance fails to be found after an
update, don't try to use it blindly, but check if it's not null before..
2016-04-28 15:45:20 +02:00
.gitignore Update .gitignore for SM specifics 2016-03-14 14:54:23 +01:00
AMBuilder Build for TF2, DOD:S and HL2:DM as well 2016-03-12 17:23:13 +01:00
AMBuildScript Initial commit of project files 2016-02-29 09:59:09 +01:00
configure.py Initial commit of project files 2016-02-29 09:59:09 +01:00
extension.cpp Fix firing OnShutdown with wrong instance index on mapchange 2016-03-15 12:25:20 +01:00
extension.h Fix firing OnShutdown with wrong instance index on mapchange 2016-03-15 12:25:20 +01:00
forwards.cpp Fix getting demo filename in csgo 2016-04-28 15:43:38 +02:00
forwards.h Fix OnSpectatorDisconnect forward on linux 2016-03-17 13:39:52 +01: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 Add natives to force a camera shot 2016-03-01 02:19:19 +01:00
hltvserverwrapper.cpp Check IDemoRecorder pointer before use 2016-04-28 15:45:20 +02:00
hltvserverwrapper.h Fix printing to demo console on CS:S linux 2016-03-14 18:47:20 +01:00
ihltvdemorecorder.h Fix linux build 2016-03-01 16:32:13 +01:00
LICENSE Initial commit 2016-02-29 09:52:26 +01:00
natives.cpp Check IDemoRecorder pointer before use 2016-04-28 15:45:20 +02: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-03-15 13:00:31 +01:00
smsdk_config.h Update README 2016-03-15 13:00:31 +01:00
sourcetv_test.sp Unify spectator client accessing native names 2016-03-06 14:11:33 +01:00
sourcetvmanager.games.txt Update windows CS:GO gamedata 2016-04-28 15:42:56 +02:00
sourcetvmanager.inc Unify spectator client accessing native names 2016-03-06 14:11:33 +01: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).

API

There are natives and forwards to access

  • 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)

Have a look at the include file.

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.