+ if(autocvar_timelimit != 0 && autocvar_fraglimit != 0 && time > autocvar_timelimit * 60) // checks if the timelimit has expired.
+ {
+ campaign_won = 0;
+ bprint("Time's up! The current level has been LOST.\n");
+ // sound!
+ }
+ else
+ {
+ campaign_won = 1;
+ bprint("The current level has been WON.\n");
+ // sound!
+ }
+ }
+ else if(autocvar_timelimit != 0 && time > autocvar_timelimit * 60)
+ {
+ campaign_won = 0;
+ bprint("Time's up! The current level has been LOST.\n");