[INC] [TF2] Alternative Hud Text
3 Attachment(s)
Yea I couldn't think of a good title...
Anyway, I do a lot of tf2 stuff that requires displaying information, so I was playing around a bit today trying to get access to the message area that the game_text_tf entity uses, after a few fails I got it working. Decided an include file was the best way to implement it, but I've never written one before so I used Colors as a base, and a lot of it was relevant so there are a couple borrowed lines in here, so thanks exvel. Still in its early stages, code is pretty ugly and hardcoded settings, but it gets the job done. The one pitfall of using this that I've noticed so far is that if the player has the minimal interface enabled, these notifications don't display. Might make a fallback for that later if it's possible to determine if minimal interface is enabled on a client. Code:
stock PrintToHud(client, const String:szMessage[], any:...) Also included isay as an example. Enjoy. |
Re: [INC] [TF2] Alternative Hud Text
Some more info on that message's structure:
String - text - The message displayed. String - icon - The icon used (this include hard codes "voice_self"). Byte - team - Used to determine the background colour of the panel (this include hard codes "0"). |
Re: [INC] [TF2] Alternative Hud Text
The names for the different icons can be found in:
tf/scripts/mod_textures.txt |
Re: [INC] [TF2] Alternative Hud Text
Quote:
|
Re: [INC] [TF2] Alternative Hud Text
Quote:
What I posted was the full usermessage structure (instead of the silly byte array). |
Re: [INC] [TF2] Alternative Hud Text
Just an interesting information for those who think this is broken: it only works for players that have the "Enable minimal HUD" option disabled.
|
Re: [INC] [TF2] Alternative Hud Text
Quote:
Quote:
|
Re: [INC] [TF2] Alternative Hud Text
Quote:
|
Re: [INC] [TF2] Alternative Hud Text
Pretty handy, did anyone ever figure out how to get this to display something on the minimal HUD display?
|
Re: [INC] [TF2] Alternative Hud Text
if client have cl_hud_minmode 1 this will be invisible , same for game_text_tf hud.
:x any solution? |
All times are GMT -4. The time now is 19:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.