Raised This Month: $12 Target: $400
 3% 

[Tutorial] Usermessages : list, ussage, bitbuffer structure


Post New Thread Reply   
 
Thread Tools Display Modes
SAMURAI16
BANNED
Join Date: Sep 2006
Old 01-29-2009 , 12:53   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #11

Quote:
Originally Posted by pheadxdll View Post
Anybody willing to take some screenshots of what these look like?

Thanks!
what ?
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
antihacker
Member
Join Date: Feb 2009
Old 03-10-2009 , 16:32   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #12

Where can i find usermessages for L4D ?
antihacker is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 03-11-2009 , 09:40   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #13

Do "meta game" in your server console. Not all messages are actually used/work/do anything.
Fyren is offline
antihacker
Member
Join Date: Feb 2009
Old 03-11-2009 , 10:27   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #14

thanks
+karma
antihacker is offline
DaFox
Senior Member
Join Date: Mar 2005
Old 03-12-2009 , 09:19   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #15

Quote:
Originally Posted by pheadxdll View Post
Anybody willing to take some screenshots of what these look like?

Thanks!
http://img24.**************/img24/961/03122009071849.png
DaFox is offline
ErF
Junior Member
Join Date: Mar 2009
Old 03-21-2009 , 11:56   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #16

You can give all the code?

Thanks.
ErF is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 03-22-2009 , 21:54   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #17

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.

I have...
Code:
HookUserMessage(GetUserMessageId("SayText2"), fn_SayText2, true);

public Action:fn_SayText2(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init) 
{
    CreateTimer(0.1, Timer_SayText2);
}
public Action:Timer_SayText2(Handle:hndl)
{
    PrintToChatAll("UserMessage: SayText2 was Called");
}
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.
__________________
CrimsonGT is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2009 , 08:46   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #18

by guessing
BfReadByte(bf) -> see if return a value
if no
BfReadChar(bf) and so on untill you get a value

Let's say if find a char. That means first argument is a char. Now you have to do
BfReadChar(bf)
BfReadByte(bf) -> if returns something is good, else again

BfReadChar(bf)
BfReadChar(bf) -> returns something ? if yes that means 2nd argument is char also
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
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
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-23-2009 , 09:18   Re: [Tutorial] Usermessages : list, ussage, bitbuffer structure
Reply With Quote #20

that's sending a message, not hooking
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode