View Single Post
Re: CS time... special?
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: CS time... special? - 11-01-2004

AFAIK, "timelimit" and "timeleft" don't exist in the Half-Life globalvars_t structure. These are variables that are computed out of gpGlobals->time. Let's say timelimit is the date at which the round will end, and timeleft is what it says.

Code:
// on round start
timelimit = gpGlobals->time + CVAR_GET_FLOAT ("mp_thecvarthatholdstheroundduration");
 
// anytime
timeleft = timelimit - gpGlobals->time;



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote