SBarInfo game timer?
-
- New User
- Posts: 16
- Joined: Thu Aug 11, 2016 7:52 am
- Contact:
SBarInfo game timer?
I'm currently working on my own game mode that involves teams taking territory around a map until the timer runs out. I'm currently working on the Custom HUD for the game mode in SBARINFO, and I can't seem to find what string to use for DrawString to reference how much time is left in the game. Does this feature even exist, and if so, what is the string to use?
Re: SBarInfo game timer?
I'm afraid you'll have to delve in to ACS to get and display the game time, I don't think there's a clean way to do it in SBARINFO yet.
https://zdoom.org/wiki/timer
https://zdoom.org/wiki/timer
-
- New User
- Posts: 16
- Joined: Thu Aug 11, 2016 7:52 am
- Contact:
Re: SBarInfo game timer?
Ah, Cutman, I think you misunderstand me. That just shows how long the player has been in the map, which can be cleanly done in SBARINFO. What I want is, say I'm playing a Deathmatch with a five minute time limit. I want this counter to display how much time REMAINS (i.e. Counting down)
Re: SBarInfo game timer?
Oh right. I still don't think there's a way to do that with SBARINFO alone unfortunately.
- NachtIntellect
- Forum Regular
- Posts: 480
- Joined: Mon Jun 11, 2012 9:20 am
- Location: Bienenstock, Germany
Re: SBarInfo game timer?
Yeah which is rather unfortunate, SbarInfo seriously needs an update, I have a similar script counting upwards via ACS, I am thinking it wouldn't be too much of a hassle to make it count backwards.
- doomista
- Forum Regular
- Posts: 147
- Joined: Sat Mar 07, 2015 6:58 pm
- Location: I've been to hell. Twice
Re: SBarInfo game timer?
This has its limitations, but at least you can still do the graphic part in SBARINFO and implement the counter itself in ACS with globalVar or globalArray https://zdoom.org/wiki/DrawNumber.
-
- New User
- Posts: 16
- Joined: Thu Aug 11, 2016 7:52 am
- Contact:
Re: SBarInfo game timer?
Now this becomes "How do I have that get read in ACS?"