Commit Graph

19 Commits

Author SHA1 Message Date
Peace-Maker
fba9b23b3f Update include and example plugin to transitional syntax 2016-11-15 23:17:53 -07:00
Peace-Maker
aefdc47d0a Add SourceTV_SetClientTVTitle native
Change the stream title for a single client.
Changing tv_title resets this.
2016-11-14 03:27:38 -06:00
Peace-Maker
307a8037d6 Add SourceTV_PrintToConsole native
Print text to single spectators' console.
2016-11-14 03:09:03 -06:00
Peace-Maker
ef76571d74 Add SourceTV_PrintToChat native
Send chat message to one client only
2016-11-14 03:01:44 -06:00
Peace-Maker
31dd491033 Replace magic bool argument with enum
Make broadcast targets more readable using a SourceTVBroadcastTarget
enum. Broadcast to all spectators including proxys or just locally
connected spectators.
2016-11-14 01:17:47 -06:00
Peace-Maker
e5db34a3e3 Add OnSpectatorChatMessage forwards to catch chat
Messages and chatgroups can be changed or blocked.
2016-11-14 01:16:39 -06:00
Peace-Maker
b8c666cac0 Unify spectator client accessing native names
Just call them "client" instead of "spectator"
2016-03-06 14:11:33 +01:00
Peace-Maker
00c6f56c69 Add SourceTV_IsClientProxy native
See if a spectator is a SourceTV relay client.
2016-03-06 14:09:10 +01:00
Peace-Maker
fabdbe7d12 Refactor SourceTV instance hooking
Keep the instances in seperate wrappers to clear up the hooks. This
allows for some OnServerStart and OnServerShutdown forwards.

To prepare support for relay servers, CHLTVServer::Shutdown is hooked to
detect shutdown instead of relying on the director unregistering the
instance.
2016-03-06 12:16:38 +01:00
Peace-Maker
fb03d5f2d5 Add natives to get SourceTV ip and port 2016-03-03 12:28:49 +01:00
Peace-Maker
55ef2a1eeb Add SourceTV_OnSpectatorPutInServer forward 2016-03-03 07:23:49 +01:00
Peace-Maker
d03b22abf6 Add SourceTV_BroadcastChatMessage native
Add option to send messages to locally connected spectators only or to
replay proxies as well.
2016-03-03 04:13:21 +01:00
Peace-Maker
c0eb6eb75f Add natives to get client ip and connect password
The hltv server doesn't provide a nice IPlayerInfo interface to get
stuff. Have to grab it and hold on to it while we can!
2016-03-03 02:47:06 +01:00
Peace-Maker
10f7fa56a1 Extract player name in ConnectClient hook in CS:GO
CS:GO doesn't send the client name in plain text, but wraps it in some
protobuf construct.
Parse that list of client convars for the player name and use it in the
SourceTV_OnSpectatorPreConnect forward
2016-03-03 01:12:16 +01:00
Peace-Maker
4bb751afaf Add ClientConnect and Disconnect forwards
Let plugins know when new spectators join or leave the SourceTV server.
2016-03-02 23:23:53 +01:00
Peace-Maker
d5424cefdf Add native and forward documentation to include file
Rename some natives for better self explanatory.
2016-03-01 15:00:27 +01:00
Peace-Maker
28d76b41e5 Add natives to force a camera shot
Override the autodirector and tell him what to show. Fixpoint camera or
chasing a player for now.
2016-03-01 02:19:19 +01:00
Peace-Maker
6e0ec48a2a Hook / Unhook consistently
Add our hooks when a SourceTV bot is added as well as on late loading
the extension.
Make sure to remove all our hooks on unload.
2016-02-29 17:44:27 +01:00
Peace-Maker
e51143d05a Initial commit of project files
CSGO only yet
2016-02-29 09:59:09 +01:00