[TF2] game_text_tf advertisements
1 Attachment(s)
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) |
Re: [TF2] game_text_tf advertisements
picture pls
|
Re: [TF2] game_text_tf advertisements
Quote:
Gimme a few seconds and I'll grab some. EDIT: Here you go! Grabbed a screenie of each background color and tried out 3 different HUD icons from mod_textures.txt (used to be mod_textures.res, I guess they renamed it): http://www.unfgaming.net/imgs/HUDMessages.png From top to bottom: hud_taunt_hint, hud_taunt_menu_icon and hud_spy_disguise_menu_icon. You'll notice the lack of squishing. If you use icons whose height/width are the same, there won't be any squishing. For some icons however (such as ico_notify_golden_wrench from Mecha's plugin), they get squished due to being disproportioned (96w x 32h) |
Re: [TF2] game_text_tf advertisements
this is nice, i wonder why it hasnt been used before, whats the max length of the message? does it support new line? btw i can tell you targetname is not used for anything :P its just an identifier for entities, can be anything
|
Re: [TF2] game_text_tf advertisements
Quote:
It can also be triggered by the HudNotifyCustom message as shown in the Snippets forum, https://forums.alliedmods.net/showthread.php?t=155911 |
Re: [TF2] game_text_tf advertisements
Quote:
I haven't figured out the max length of the message (not sure of the quickest way to go about this). Quote:
|
Re: [TF2] game_text_tf advertisements
That explains the squishing. :up:
I think they are not used very much because they only show up for a few seconds (unless you hit the input repeatedly with a timer) and because these messages will not be seen by any players using the minimized TF2 HUD. And I don't believe they are multi-line, correct me if wrong. |
Re: [TF2] game_text_tf advertisements
I put them into some custom maps years ago, but never found much use aside from giving simple hints.
https://developer.valvesoftware.com/wiki/Game_text_tf Iirc it also messages everyone on the team, which is quite annoying due to their placement. |
Re: [TF2] game_text_tf advertisements
someone test pls
http://ddhoward.bitbucket.org/script...me_text_tf.inc Examples: These examples have been removed due to a change in how the order of arguments. Also, the indentations of the different @param lines show up correctly in notepad and Notepad++, just not in a browser. |
Re: [TF2] game_text_tf advertisements
Quote:
I did this: PHP Code:
|
All times are GMT -4. The time now is 11:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.