p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
https://sar.portal2.sr/
MIT License
93 stars 29 forks source link

`ghost_chat` doesn't work for orange #218

Closed ThisAMJ closed 7 months ago

ThisAMJ commented 7 months ago

Server::say (say callback) is on the... server. All orange's messages first go to the server for some basic processing then back to orange to be shown in MsgFunc_SayText2, never touching say's callback on orange's side. If blue has the ghost message window open when orange sends a chat message, it will be sent to the ghost server as blue.

instead of say we should mid-function hook CBaseHudChat::Send and steal ansi, which I will learn how to do at some point

ThisAMJ commented 7 months ago

198b3a3