29f76a6737
Abstract the language getter to HLTVClientWrapper::GetLanguageId so we have the option of having native setters / getters in SourcePawn to assign language. Whether we actually do something about it, I don't know. |
||
---|---|---|
.gitignore | ||
AMBuilder | ||
AMBuildScript | ||
commonhooks.cpp | ||
commonhooks.h | ||
configure.py | ||
extension.cpp | ||
extension.h | ||
forwards.cpp | ||
forwards.h | ||
hltvclientwrapper.cpp | ||
hltvclientwrapper.h | ||
hltvdirectorwrapper.cpp | ||
hltvdirectorwrapper.h | ||
hltvserverwrapper.cpp | ||
hltvserverwrapper.h | ||
ihltvdemorecorder_csgo.h | ||
ihltvdemorecorder.h | ||
LICENSE | ||
natives.cpp | ||
natives.h | ||
PackageScript | ||
README.md | ||
smsdk_config.h | ||
sourcetv_test.sp | ||
sourcetvmanager.games.txt | ||
sourcetvmanager.inc |
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.