alias warp "qc_cmd_sv warp ${* ?}" // Choose different level in campaign
// other aliases for server commands
-alias endmatch "timelimit -1"
+set _endmatch 0 "if set to 1 ends the match immediately; use it instead of timelimit -1 (deprecated)"
+alias endmatch "_endmatch 1"
alias bots "minplayers 4; minplayers_per_team 2"
alias nobots "minplayers 0; minplayers_per_team 0"
if(!MapInfo_CheckMap(m))
return "The map you suggested does not support the current game mode.";
cvar_set("nextmap", m);
- cvar_set("timelimit", "-1");
+ cvar_set("_endmatch", "1");
if(mapvote_initialized || alreadychangedlevel)
{
if(DoNextMapOverride(0))
*/
void NextLevel()
{
+ cvar_set("_endmatch", "0");
game_stopped = true;
intermission_running = true; // game over
leadlimit = 0; // no leadlimit for now
}
- if(timelimit > 0)
- {
- timelimit += game_starttime;
- }
- else if (timelimit < 0)
+ if (autocvar__endmatch || timelimit < 0)
{
// endmatch
NextLevel();
return;
}
+ if(timelimit > 0)
+ timelimit += game_starttime;
+
float wantovertime;
wantovertime = 0;
#include <common/weapons/_all.qh>
bool autocvar__sv_init;
+bool autocvar__endmatch;
bool autocvar_g_use_ammunition;
bool autocvar_g_jetpack;
bool autocvar_g_warmup_allguns;