Raised This Month: $ Target: $400
 0% 

[INC] [TF2] Alternative Hud Text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GNCMatt
Member
Join Date: Apr 2009
Old 04-28-2011 , 05:47   [INC] [TF2] Alternative Hud Text
Reply With Quote #1

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:...)
stock PrintToHudAll(const String:szMessage[], any:...)

Also included isay as an example. Enjoy.
Attached Files
File Type: inc tf2_hud.inc (1.1 KB, 932 views)
File Type: sp Get Plugin or Get Source (isay.sp - 775 views - 743 Bytes)
File Type: smx isay.smx (3.1 KB, 547 views)
__________________

Last edited by GNCMatt; 04-28-2011 at 12:48.
GNCMatt is offline
 



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 18:11.


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