ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.67k stars 619 forks source link

[BUG] Message TextMsg and print_notify is broken #1170

Open MPNumB opened 11 years ago

MPNumB commented 11 years ago

Message TextMsg is a hl engine message which is designed to print many stuff in console, chat, and so on... A link on the message info: http://wiki.amxmodx.org/Half-Life_1_Game_Events#TextMsg

// Values for DestinationType byte
#define print_notify 1 // print in console and also notify on top left of screen
#define print_console 2 // print in console
#define print_chat 3 // print in chat
#define print_center 4 // print in middle of the screen
#define print_chat_color 5 // as print_chat, but with color; use first string for user senderID

So problem is, that print_notify works like print_console; it doesn't write a notification on top left of the screen. This has been broken since transition from CS1.5 to CS1.6.

I have included an image on how it works in CS1.5. As you can see, this DestinationType is used quite a lot in games, and still is, but broken...

Note: This notification method should work even with developer set to 0. Also there are some of client cvars what effect the message. hud_drawhistory_time is how long in seconds message will stay. con_color is color of the text. And I think there might be more.

Default number of lines what can be drawn is 4, but I think there might be a cvar what can change that as well. If limit is exceeded, than the earliest one gets hidden, all the rest move up 1 line, and the newest one shows up at the last line (same as with chat, only that chat has 5 slots instead of 4).

print_notify_cs15

Irv1n3 commented 11 years ago

Old school! I would like to see it again (and it's indeed useful)