Text timer? Created 16 years ago2008-01-21 04:35:30 UTC by username username

Created 16 years ago2008-01-21 04:35:30 UTC by username username

Posted 16 years ago2008-01-21 04:35:30 UTC Post #243936
Hello I would like to make a timer that counts how long a player is in a certain room and displays it for that player in text at the top of the screen. When they leave the room the timer is reset. I would like it to have the digits xx.xx seconds. How can I do this?

I tried using game text but only one text can be displayed at once and I would need four at once for all of the digits. Also this approach uses quite a few entities as just the game texts would total 40 entities not to mention changetargets and multi_managers.

Thanks for your help
User
Posted 16 years ago2008-01-21 05:06:19 UTC Post #243937
I believe this would require some sort of coding.
monster_urby monster_urbyGoldsourcerer
Posted 16 years ago2008-01-21 05:26:19 UTC Post #243938
Is there a max number of seconds they're in the room before something happens? (it would be easier if there were a known maximum time) If you can give all the paramaters/limits I might have a simple way to do it...

In line with wut Urbanebula is saying, there are probably multiplayer mods written already that'll allow you to do weird stuff like this. Is this for DM or CS or what?
Captain Terror Captain Terrorwhen a man loves a woman
Posted 16 years ago2008-01-21 06:29:39 UTC Post #243942
You can use a KZ_ timer
Posted 16 years ago2008-01-21 13:15:13 UTC Post #243976
Spike's right, google for Kreedz's map template, or decompile existing kz_ maps to see how the timers there work.
They're complex, but implementable.

As for a dynamic game_text-based timer, it's pretty impossible to create one without coding, unless you feel like creating a game_text for each second. ;)
Daubster DaubsterVault Dweller
Posted 16 years ago2008-01-21 18:05:48 UTC Post #243986
Daubster don't limit your ideas to game text... there's 10 different ways you could do this (probably).

If I get time I'll put up an example if I can get my idea to work; entity setup compos here we come lol! = P
Captain Terror Captain Terrorwhen a man loves a woman
Posted 16 years ago2008-01-22 01:32:01 UTC Post #244006
Heres an "official time counter of kz maps" prefab. http://www.fpsbanana.com/prefabs/582

I don't know if it will help just figured it might be some use.
Posted 16 years ago2008-01-22 01:43:11 UTC Post #244007
Haha that is wicked! Good work CactusJack! =)

I'm working on a system that's a hundred times (literally) less complicated, but I have to get it to work first... ; )
Captain Terror Captain Terrorwhen a man loves a woman
You must be logged in to post a response.