Quote:
Originally Posted by addicted2sex
You can catch hud messages by catching game messages:
MESSAGE_BEGIN with msgtype SVC_TEMPENTITY (23)
WRITE_BYTE(TE_TEXTMESSAGE); // TE_TEXTMESSAGE - 29
...
WRITE_STRING(message)
|
Using register_message? I tried that but it didn't work. It seems the only way to hook it is through orpheu as you can read here:
Quote:
Originally Posted by ot_207
Yes, connor is right.
You need to do the function format file for EngFunc_MessageBegin, EngFunc_MessageEnd, and EngFunc_WriteString. After that you basically hook the 3 functions with orpheu and do all the dirty work.
|
However I figured I'd try hooking UTIL_HudMessage first to see if that works. I'm trying to create a permanent hud by blocking any hud messages that attempt to replace or use that channel. I feel like that's a better approach than re-sending the hud message every 0.1 seconds to ensure it remains on the player's screen.