Or you can always use the CountDownTimer class in the util_shared.h...
CountDownTimer roundTimer;
roundTimer.Start(mp_roundlimit.GetFloat() * 60);
if (roundTimer.isElapsed())
{
}
roundTimer.Reset()...
and so on.. Just look the CountDownTimer class.
On Mon, 21 Feb 2005 17:04:09 +,
Hi all.
How would I go about setting up round timers?
I want to have it so that a timer goes for 10 minutes (mp_buildtime)
then, when that ends, do something and start another timer, then do
something with that.
(Sorry if that didn't make any sense)
Thanks.
Okay, thanks alot :)
http://www.sourcewiki.org/wiki/index.php/Creating_a_Roundtimer
that shows you how to make a round timer and display it on the HUD.
basically all you do is put a timer in either your game rules(for a
global timer) or your player(for a timer for each player) by checking
a start
3 matches
Mail list logo