} else {
if (time < STAT(GAMESTARTTIME))
timer = seconds_tostring(floor(timelimit * 60));
+ else if (overtimes > 0)
+ timer = seconds_tostring(floor(time - STAT(OVERTIMESTARTTIME)));
else
timer = seconds_tostring(timeleft);
}
float game_stopped;
float game_starttime; //point in time when the countdown to game start is over
float round_starttime; //point in time when the countdown to round start is over
+float overtime_starttime; // z411 point in time where first overtime started
float checkrules_overtimesadded; // z411 add
bool autocvar_g_allow_oldvortexbeam;
int autocvar_leadlimit;
REGISTER_STAT(SECRETS_FOUND, int, secrets_found)
REGISTER_STAT(RESPAWN_TIME, float)
REGISTER_STAT(ROUNDSTARTTIME, float, round_starttime)
+REGISTER_STAT(OVERTIMESTARTTIME, float, overtime_starttime)
REGISTER_STAT(OVERTIMESADDED, float, checkrules_overtimesadded)
REGISTER_STAT(MONSTERS_TOTAL, int)
REGISTER_STAT(MONSTERS_KILLED, int)
Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_OVERTIME_TIME, autocvar_timelimit_overtime * 60);
sound(NULL, CH_INFO, SND_OVERTIME, VOL_BASE, ATTN_NONE);
- if(checkrules_overtimesadded == 1)
+ if(checkrules_overtimesadded == 1) {
Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_OVERTIME);
+ overtime_starttime = time;
+ }
}
float GetWinningCode(float fraglimitreached, float equality)