Commit Graph

15 Commits

Author SHA1 Message Date
Peace-Maker
7d2a18e96a Don't call IClient::ClientPrintf on the bot twice
The second time would be a nop anyway, so why bother.
2016-12-04 21:51:08 -07:00
Peace-Maker
54b0a16219 Add Left 4 Dead 2 support 2016-12-04 21:41:07 -07:00
Peace-Maker
e622428037 Add Left 4 Dead support
Spectator client connections aren't tested yet - don't have the game
installed.
2016-12-04 21:05:06 -07: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
7fb0e7bf23 Fix getting IDemoRecorder in CS:GO linux 2016-10-15 16:59:04 -06:00
Peace-Maker
6942d4f8ce Fix crash on "status" when host_client lookup fails
Block execution of the "status" command on the sourcetv bot, if the
address of the host_client pointer failed to be found. This at least
prevents the known crash in Host_Client_Printf if we can't work around
it.
2016-08-15 23:22:43 +02:00
Peace-Maker
737b2ab1d0 Fix demo recording support for CS:GO
The IDemoRecorder interface was heavily modified.
2016-07-07 16:27:46 +02:00
Peace-Maker
b8e9696875 Fix demo recording natives on CS:GO linux 2016-05-04 16:11:19 +02:00
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
Peace-Maker
9ae2431375 Fix printing to demo console on CS:S linux
This is getting rediculous.
Our own native calls IClient::ClientPrintf to print stuff to the demo
console.
The engine's Host_Client_Printf uses the CGameClient vtable's
ClientPrintf. To catch the output of the "status" command, we have to
hook both vtables on linux...
Windows casts to IClient in Host_Client_Printf, so no need to do that
there.
2016-03-14 18:47:20 +01:00
Peace-Maker
7c4048690b Fix OnStartRecording and OnStopRecording forwards on linux
CHLTVServer::StartRecording is called directly in tv_record on linux,
ignoring the vtable.
Add a detour on linux for these two functions, so we always notice when
recording starts.
Windows actually always uses the vtable to get the function address, so
we don't need to detour anything on windows.
2016-03-09 23:04:28 +01:00
Peace-Maker
22c3803718 Fix linux build again 2016-03-08 16:57:07 +01:00
Peace-Maker
61f59c5b9b Track spectators for each SourceTV instance seperately 2016-03-06 12:50:07 +01:00
Peace-Maker
10910e8b8e Pass the right SourceTV instance index in forwards 2016-03-06 12:26:45 +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