Director Hud Message - last updated : 14 feb 2011
Ever wanted to display message like the hints messages in CS or on HLTV? It should work on all mods. It uses basically the same params as set_hudmessage. (except for channel) As side-note, the size is bigger than normal hud message and it can't be changed. [IMG]http://img830.**************/img830/5036/hudt.th.png[/IMG] │ CreditsMPNumB : original idea. xPaw : original idea. Exolent[jNr] : put the code in a .inc. │ LimitationsMax message length : 128 characters. You can show only 8 messages at once. │ Developer NotesThe tip were in hud_spectator.cpp (line 526) in the HLSDK (client). │ FunctionsThe following functions mimic the style of set_hudmessage() and show_hudmessage(). Code: set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false ) show_dhudmessage( index, const message[], any:... )
MPNumB : original idea. xPaw : original idea. Exolent[jNr] : put the code in a .inc.
Max message length : 128 characters. You can show only 8 messages at once.
The tip were in hud_spectator.cpp (line 526) in the HLSDK (client).
The following functions mimic the style of set_hudmessage() and show_hudmessage(). Code: set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false ) show_dhudmessage( index, const message[], any:... )
set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false ) show_dhudmessage( index, const message[], any:... )