View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 03-23-2009 , 08:49   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #19

Quote:
Originally Posted by CrimsonGT View Post
Im a bit confused, I wrote a plugin that hooks all TF2 usermessages and creates a 0.1 second timer and then prints to chat when they are called. Some usermessages which I KNOW are being called are not printing out to chat. For example SayText2, I have another plugin that uses SayText2 but when I use it, nothing prints to chat.

My other question is how the hell do you find out what the args for a usermessage are? The first post says it will be covered later but never goes over it so im a bit clueless.
Not sure why your hook isn't working. That's the only way I know of to get a good guess of the format, but this is what I use for SayText2 in TF2

PHP Code:
    BfWriteByte(hBfclientid); 
    
BfWriteByte(hBf0); 
    
BfWriteString(hBfmessage);
    
EndMessage(); 
Use \x03 in the message for the team color of the specified clientid.
psychonic is offline