if(winner != world) // just in case a winner wasn't found
{
- if(winner.team == COLOR_TEAM1)
- teamname = "^1Red Team";
- else if(winner.team == COLOR_TEAM2)
- teamname = "^4Blue Team";
- else if(winner.team == COLOR_TEAM3)
- teamname = "^3Yellow Team";
- else
- teamname = "^6Pink Team";
+ teamname = ColoredTeamName(winner.team);
FOR_EACH_REALCLIENT(e)
centerprint(e, strcat(teamname, "^5 wins the round, all other teams were frozen."));
bprint(teamname, "^5 wins the round since all the other teams were frozen.\n");
if(gameover)
{
- round_handler_Stop();
+ round_handler_ResetCountdown();
round_handler_Remove();
return;
}
}
else
{
- round_handler_Stop();
+ round_handler_ResetCountdown();
}
self.nextthink = time + 1; // canRoundStart every second
}
return (!round_handler.wait && !round_handler.cnt);
}
-void round_handler_Stop()
+void round_handler_ResetCountdown()
{
entity e;
if(round_handler.count)
Send_CSQC_Centerprint_Generic_Expire(e, CPID_ROUND_STARTING);
round_handler.cnt = round_handler.count + 1;
}
- round_handler.nextthink = 0;
}
void round_handler_Remove()
float round_handler_AwaitingNextRound();
float round_handler_CountdownRunning();
float round_handler_IsRoundStarted();
-void round_handler_Stop();
+void round_handler_ResetCountdown();
void round_handler_Remove();