seta hud_panel_centerprint_flip "0"
seta hud_panel_centerprint_fontscale "1.4"
seta hud_panel_centerprint_fontscale_bold "2"
-seta hud_panel_centerprint_fontscale_bold "2.5"
+seta hud_panel_centerprint_fontscale_title "2.5"
seta hud_panel_minigameboard_pos "0.22 0.15"
seta hud_panel_minigameboard_size "0.50 0.60"
{
if(inround)
{
- Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded);
+ Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded, STAT(ROUND_COUNT));
Notification annce_num = Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded);
if(annce_num != NULL)
Local_Notification(MSG_ANNCE, annce_num);
centerprint_SetTitle(MapInfo_Type_ToText(gametype));
if(time + 5.0 < startTime) // if connecting to server while restart was active don't always play prepareforbattle
- if(time > announcer_countdown.nextthink) // don't play it again if countdown was already going
+ if(!warmup_stage && time < STAT(GAMESTARTTIME))
Local_Notification(MSG_ANNCE, ANNCE_PREPARE);
announcer_countdown.nextthink = startTime - floor(startTime - time + 0.5); //synchronize nextthink to startTime
void centerprint_Add(int new_id, string strMessage, float duration, int countdown_num)
{
TC(int, new_id); TC(int, countdown_num);
- LOG_INFOF("centerprint_Add: ^2id: %d ^3dur: %d ^5countdown: %d\n'%s'", new_id, duration, countdown_num, strreplace("\n", "^7\\n^7", strMessage));
+ //LOG_INFOF("centerprint_Add: ^2id: %d ^3dur: %d ^5countdown: %d\n'%s'", new_id, duration, countdown_num, strreplace("\n", "^7\\n^7", strMessage));
int i, j;
if(strMessage == "" && new_id == 0)
float autocvar_hud_panel_centerprint_fade_subsequent_minfontsize = 0.75;
float autocvar_hud_panel_centerprint_fade_minfontsize = 1;
bool autocvar_hud_panel_centerprint_flip;
-float autocvar_hud_panel_centerprint_fontscale;
-float autocvar_hud_panel_centerprint_fontscale_bold = 1.4;
-float autocvar_hud_panel_centerprint_fontscale_title = 2;
+float autocvar_hud_panel_centerprint_fontscale = 1.4;
+float autocvar_hud_panel_centerprint_fontscale_bold = 2;
+float autocvar_hud_panel_centerprint_fontscale_title = 2.5;
bool autocvar_hud_panel_centerprint_dynamichud = true;
float autocvar_hud_panel_centerprint_time;
MSG_CENTER_NOTIF(COUNTDOWN_BEGIN, N_ENABLE, 0, 0, "", CPID_ROUND, "2 0", _("^BOLDBegin!"), "")
MSG_CENTER_NOTIF(COUNTDOWN_GAMESTART, N_ENABLE, 0, 1, "", CPID_ROUND, "1 f1", _("^BGGame starts in\n^BOLD^COUNT"), "")
- MSG_CENTER_NOTIF(COUNTDOWN_ROUNDSTART, N_ENABLE, 0, 1, "", CPID_ROUND, "1 f1", _("^BGRound starts in\n^BOLD^COUNT"), "")
+ MSG_CENTER_NOTIF(COUNTDOWN_ROUNDSTART, N_ENABLE, 0, 2, "f2", CPID_ROUND, "1 f1", _("^BGRound %s starts in\n^BOLD^COUNT"), "")
MSG_CENTER_NOTIF(COUNTDOWN_ROUNDSTOP, N_ENABLE, 0, 0, "", CPID_ROUND, "2 0", _("^F4Round cannot start"), "")
MSG_CENTER_NOTIF(ROUND_TIED, N_ENABLE, 0, 0, "", CPID_ROUND, "0 0", _("^BGRound tied"), "")
#include "physics/movetypes/movetypes.qh"
float warmup_limit;
float round_limit;
+int round_count;
#endif
#ifdef SVQC
REGISTER_STAT(FRAGLIMIT, float, autocvar_fraglimit)
REGISTER_STAT(TIMELIMIT, float, autocvar_timelimit)
REGISTER_STAT(WARMUP_TIMELIMIT, float, warmup_limit)
+REGISTER_STAT(ROUND_COUNT, int, round_count)
REGISTER_STAT(ROUND_TIMELIMIT, float, round_limit)
#ifdef SVQC
float autocvar_sv_wallfriction;
PlayerStats_GameReport_Reset_All();
}
- if (round_handler_IsActive())
+ if (round_handler_IsActive()) {
+ round_count = 0;
round_handler_Reset(game_starttime);
+ }
}
if (shuffleteams_on_reset_map)
{
if (this.canRoundStart() && !(autocvar_g_campaign && !campaign_bots_may_start))
{
- if (this.cnt == this.count + 1) round_starttime = time + this.count;
+ if (this.cnt == this.count + 1) {
+ round_starttime = time + this.count;
+ ++round_count;
+ }
int f = this.cnt - 1;
if (f == 0)
{