Commit Graph

30 Commits

Author SHA1 Message Date
Peace-Maker
060684a4cc Fix CS:GO host_client address gamedata #4
Another decimal vs. hex fuckup. I shouldn't be updating gamedata in the middle of the night.
2018-02-06 15:52:09 +01:00
Andreas Willinger
c459c61e11 Fix CS:GO linux signature 2017-12-24 23:49:33 +01:00
awillinger
cb3ece1d01 Fix CS:GO Linux signatures 2017-12-02 16:02:52 +01:00
Peace-Maker
bdf9fa8e72 Fix linux CSGO gamedata #3
Heximal vs. decimal brainfart..
2017-07-19 13:24:52 +02:00
Peace-Maker
f11a9b2263 Update CSGO gamedata #3 2017-07-11 19:49:53 +02:00
Peace-Maker
1c7058bbec Use CS:GO gamedata for CS:CO 2017-01-26 11:58:11 -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
cab2bc24ac Update CS:GO gamedata
RIP symbols 👎
2016-11-29 12:40:05 -07: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
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
3aa53e4baf Update CS:GO gamedata 2016-08-17 17:59:25 +02:00
Peace-Maker
df34652818 Update CS:GO gamedata 2016-08-15 23:21:04 +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
857eb091bd Update windows CS:GO gamedata 2016-04-28 15:42:56 +02:00
Peace-Maker
7b79fa4299 Fix OnSpectatorDisconnect forward on linux
Multiple inheritance is killing me:(
The engine calls CGameClient::Disconnect, but we've only hooked
IClient::Disconnect, which uses a seperate vtable.
Our own SourceTV_KickClient native calls the IClient variant though, so
we need to hook both on linux to catch all cases.
2016-03-17 13:39:52 +01: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
6e1544addf Build for TF2, DOD:S and HL2:DM as well
Gamedata looks the same as CS:S at least in TF2, so just give it a
whirl!
2016-03-12 17:23:13 +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
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
5399c79d97 Dynamically get CHLTVServer::m_DemoRecorder offset
Instead of hardcoding a hugh member variable offset, get it dynamically
from functions using the variable.
2016-03-03 11:49:14 +01:00
Peace-Maker
55ef2a1eeb Add SourceTV_OnSpectatorPutInServer forward 2016-03-03 07:23:49 +01:00
Peace-Maker
b6dee3a3a8 Add tv_force_steamauth convar
Enable Steam authentication for SourceTV clients. Thanks to @GoD-Tony
for his snippet!
2016-03-03 07:17:40 +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
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
357e1bc4c9 Allow printing to bot/demo console in CSS
CSS' CBaseClient::ClientPrintf tries to use the net channel directly
instead of going through the saner route using GameClient::SendNetMsg.

This introduces a stupid hack to work around the bots lack of a net
channel, so ClientPrintf's SVC_Print messages get included in the demo.
2016-03-02 05:40:20 +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