Pages: [1]
  Print  
Author Topic: What about adding cg_drawtimer 2 as countdown?  (Read 8877 times)
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« on: July 31, 2018, 01:45:29 AM »

On Discord, ccCam user asked if there is a way to show a countdown for the remaining time of a match. AFAIK, there is only a countup timer, cg_drawtimer 1.
However, a countdown may actually be useful. So, what about adding "cg_drawtimer 2" to work as a countdown?
I can guess that the change shouldn't be too much: get timelimit value (convert it to mm:ss if necessary), then subtract the time you would usually print, then print this new value.

Additional thoughts:
- In case no timelimit is set (timelimit <= 0... or, well, timelimit < 1), it should fall back to showing a countup.
- In a few cases, the match time may exceed the timelimit (e.g. in LMS mode, you have to wait for the end of the current round, before the match can actually end. And in Elimination mode, a team has to win of at least two rounds of difference before the match can end, IIRC). I don't think this should be a big problem: I suppose just having a minus symbol (or an "extra" or "ot" word or similar) in front of a upgoing time should work. However that should be tested, to be sure it would not show weird things.
- I just did a quick test, it looks like timelimit is always rounded down (I entered timelimit 1.7 and the match ended at 1 minute).
- Elimination roundtime is already a countdown, it is independent from cg_drawtimer and doesn't need to be modified. Might give some hint about the code, but elimination_roundtime is expressed in seconds instead of minutes like timelimit variable.

What do you think?
« Last Edit: August 01, 2018, 04:39:43 PM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Mapsking
Nub


Cakes -2
Posts: 9


« Reply #1 on: October 31, 2018, 12:56:23 PM »

Personally, I would love to see this.  TBH, I can't even really see how useful a timer that DOESN'T count down the remaining time of the match is.  Sauerbraten, Alien Arena, Xonotic, I believe all show the remaining time.  Since you can set the match length, it should definitely be a countdown timer showing the remaining time by default, in my opinion, or at least certainly an option, especially since you can easily set the length of the matches, it would not matter if the match was five minutes or twenty minutes, all you'd have to do is look at it, and see how much is remaining in either case.
Logged
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #2 on: May 28, 2019, 05:39:39 AM »

Another suggestion I had from another player would be to also add an option to show your computer time (yes, the clock) on screen.

I suppose the rationale is that if you are playing fullscreen, you don't see your own PC clock, so you may risk to be late for sleeping, going office or school...

I don't know if it would be worth the time to code it or the use of a new cvar (cg_drawClock 1 for 24h mode, cg_drawClock 2 for 12h mode? Vice versa?)... however I write it down here, just in case someone may be interested into trying to code it.

In the meanwhile, I can just suggest people to take a look to their wristwatch or to their phone by now and then, between matches! Smiley
« Last Edit: May 28, 2019, 05:56:06 AM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
cheb
Lesser Nub


Cakes 3
Posts: 127



WWW
« Reply #3 on: November 17, 2019, 03:47:30 AM »

Quote
you don't see your own PC clock, so you may risk to be late for sleeping, going office or school...
Endless Space 2 does include a clock, right in the center of its big honking "End the turn" button.
Did that help me not to stay up to 5 in the morning?
NO. Lips Sealed
Logged

Imma lazy dreamer. I achieved nothing.
Pages: [1]
  Print  
 
Jump to: