Author
|
Message
|
BANNED
|
10-11-2014
, 19:56
[TF2] game_text_tf advertisements
|
#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)
|
|
|
|