Commit Graph

16 Commits

Author SHA1 Message Date
Peace-Maker
30a83785bf Fix getting demo filename in csgo 2016-04-28 15:43:38 +02:00
Peace-Maker
7c0a5b501d Fix typo inverting bLocalOnly parameter in natives
BroadcastScreenMessage and BroadcastChatMessage sent to local clients
only while the parameter told them not to.
2016-03-12 16:51:38 +01: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
61f59c5b9b Track spectators for each SourceTV instance seperately 2016-03-06 12:50:07 +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
4d62d77e55 Clean up some SDK calls to use SourceHook directly
Don't use IBinTools to call virtual functions. We're in C++! Use
SourceHook right away. This reduces in less and readable code.
2016-03-03 09:13:59 +01:00
Peace-Maker
1f45a6bd4f Always add a new line after a console message 2016-03-03 04:13:56 +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
7e9a8d6aec Fix linux build 2016-03-01 16:32:13 +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
3210a8d249 Add CSS support 2016-02-29 14:55:23 +01:00
Peace-Maker
e51143d05a Initial commit of project files
CSGO only yet
2016-02-29 09:59:09 +01:00