Text msg on screen


Craftos
01-01-2004, 07:34 AM
I want to create such scenario:
Blowable barricade which open new route in map, working just for one side. Everything works except one thing. "Capture" time is set to 15 seconds. While this time opposite side has a chance to counter it. So when one starts to cap text is shown on the screen that he started to "cap" thing. It works as it should (using game_text, it shows for 15secs) but if capping is broken I can't "turn off" shown text. I've tried to use env_state as a master to turn off things. This works for removing dod_capture_area after succesful cap. But for text it turns off game_text entity but text always stays on screen for 15 seconds.
How can I stop text from showing before time is up?

redfalcon
01-02-2004, 10:26 AM
what's your fade in/out and hold time for your text, this should be the only things that defines how long the text appears, not some kind of rediculous cycle where the capture area continually triggers your text for the entire length of capture as you appear to believe.

Craftos
01-03-2004, 02:25 PM
No, game_text is fired by begin capturing zone, but if capturer leaves zone before time's up I can't stop game_text from showing msg. Once fired up game_text shows text thru set time.

dmGremlin
03-04-2007, 07:43 PM
I can't seem to get the game_text to show up at all - does it work for DoD:Source? Does anyone have a sample map with it working that I can check out?

the_irate_pirate
03-04-2007, 07:48 PM
don't use, game_text, instead use env_hudhint.

Trp. Jed
03-04-2007, 09:55 PM
Moved out of tutorials because it isn't one

dmGremlin
03-05-2007, 12:23 PM
Cool, thanks that worked - do you know if there's a way to dynamically change the message the hud_hint displays, such as reading the ouput from a math counter?

The reason is, I'm trying to set up a target range for my training map that shows the number of times that you hit an object. I think I've figured out a way to get the math counter to read the number of hits, but haven't yet figured out a way to display the score.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.