Brian A. Stumm wrote:

Can I get a push in the right direction here?

I'm looking to capture with metamod "say" messages that are typed to the
console (and later probably will want for remote console - rcon).

I've logged hundreds of megs of data reflecting all pfnMessageBegin,
WriteByte, WriteString (and the rest) as well as hooking pfnServerCommand
and logging any of those that come through. Not a damn one of the lines in
this 500+ megs of text looks remotely like a "Server say" message. And
with voting etc my server "says" stuff all the time.

In the default SDK code, chat messages are handled with the "say" command in ClientCommand() found in the client.cpp file...

if ( FStrEq(pcmd, "say" ) )
{
   Host_Say( pEntity, 0 );
}

Host_Say() will propagate the text message to all clients.  Other MODs
may do this differently (server voting, etc. might not work the same way).

--
Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to