This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[TF2] game_text_tf advertisements


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-11-2014 , 19:56   [TF2] game_text_tf advertisements
Reply With Quote #1

So I reverse-engineered Mecha the Slag's Golden Wrench notification plugin and turned it into a message-displaying command.

Thing is, I'm at a brick wall in regards to what to do with this. The game_text_tf entity that the plugin calls on is so diverse and so easily modifiable that it could easily be used in so many ways.

Attached is an example plugin I made for this, and below is all the information you need on customizing this.


IDEAS FOR THIS
- TF2-specific "Advertisement" plugin that utilizes this to display adverts alongside the standard hint/top/chat/center/menu messages. - Would definitely like to see this made, just not sure on how to set it up properly. I'm thinking giving the option to choose the background color, icon, message text, which team to display it to.

- Incorporation into existing game mode plugins? - Could be neat in Jailbreak, TF2 Tower Defense, VS Saxton Hale/Freak Fortress 2



ICONS
For the "DispatchKeyValue(entity, "icon", "ico_build");" bit, you can use anything found within "tf/scripts/mod_textures.res" in place of "ico_build". This includes HUD elements (such as the Engineer's building status icons), killfeed icons and much more.


BACKGROUND VALUES
For DispatchKeyValue(entity, "background", "0");
0 - Grey
2 - Red
3 - Blue


TEAM-BASED DISPLAY
For DispatchKeyValue(entity, "display_to_team", "0");
0 - Everyone
2 - RED Team only
3 - BLU Team only


TARGETNAME
For DispatchKeyValue(entity, "targetname", "game_text1");

I don't know what this is. I've been trying to find info on "game_text1" in an effort to see if there's other things this can target (I'm thinking this could lead to different background styles)
Attached Files
File Type: sp Get Plugin or Get Source (TF2_HUDMessages.sp - 983 views - 1.7 KB)
404UserNotFound 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 13:30.


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