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

Register a hudmessage


Post New Thread Reply   
 
Thread Tools Display Modes
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 04-26-2008 , 01:18   Re: Register a hudmessage
Reply With Quote #11

connorr - where I can read about SVC_TEMPENTITY ?
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 04-26-2008 , 01:27   Re: Register a hudmessage
Reply With Quote #12

Obviously, I'm not connorr, but you can find info on messages in the messages_const.inc file.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 05-17-2008 , 14:59   Re: Register a hudmessage
Reply With Quote #13

*dig*
May one catch a hudmessage sent by the Mod itself with this as well?
I'm willing to catch and modify it, or block it and create an altered one,
whichever works.
EDIT: Okay this way catches that very hudmessage from the mod as well.
(Not anything from AMXX, though) However, with this method I, afaik, won't
be able to edit the message. What'd be the fakemeta workaround, preferably
with register_forward? Cannot seem to find anything with tempentity in the
fakemeta_const.inc.
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 05-17-2008 at 17:11.
Silencer123 is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-30-2008 , 18:05   Re: Register a hudmessage
Reply With Quote #14

Is possible to hook messages printed by client_print function?

Quote:
Originally Posted by util.cpp
void UTIL_ClientPrint(edict_t *pEntity, int msg_dest, char *msg)
{
if (!gmsgTextMsg)
return; // :TODO: Maybe output a warning log?

char c = msg[190];
msg[190] = 0; // truncate without checking with strlen()

if (pEntity)
MESSAGE_BEGIN(MSG_ONE, gmsgTextMsg, NULL, pEntity);
else
MESSAGE_BEGIN(MSG_BROADCAST, gmsgTextMsg);

WRITE_BYTE(msg_dest);
WRITE_STRING(msg);
MESSAGE_END();
msg[190] = c;
}
I tried to hook TextMsg message, but any positive results.

Last edited by Sn!ff3r; 05-30-2008 at 18:20.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Old 06-10-2008, 06:50
Styles
This message has been deleted by Styles. Reason: wrong thread XD
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-10-2008 , 06:52   Re: Register a hudmessage
Reply With Quote #15

Quote:
Originally Posted by Sn!ff3r View Post
Is possible to hook messages printed by client_print function?



I tried to hook TextMsg message, but any positive results.
I don't think so. I mean I think the dest's are like print_center, print_chat, ect.. and they are hooked so... I think they are put in AFTER the fact.
Styles is offline
Send a message via AIM to Styles
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 14:21.


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