View Single Post
Re: CS time... special?
Old
  (#3)
Fierce Recon
Guest
 
Status:
Posts: n/a
Default Re: CS time... special? - 11-01-2004

so otherwise there's no change to gpGlobals->time that's done by mp.dll?

when i say timelimit and timeleft, i mean that they use cs cvars...

I noticed this in the amx, where OLO uses those 2 for timers, so I got a little confused, why not do
Code:
...
float last_ticked;
...
struct timer {
...
float waitleft;
float wait;
...
}
...
void timertick()
{
...
if (timer->waitleft - (gpGlobals->time - last_ticked) <= 0)
...
last_ticked = gpGlobals->time;
}
Instead of what he does (which just plainly scares me)
  
Reply With Quote