So, since one of the last updates in CS:GO, I have been having the problem that quite often, forcing the map end doesn't work properly.
Normally, it should terminate the round and, well, change the map, but now it simply restarts the round..
Running Zipcore's timer, relevant part of code:
PHP Code:
CPrintToChatAll("1..");
CreateTimer(1.0, TerminateRoundTimer, INVALID_HANDLE, TIMER_FLAG_NO_MAPCHANGE);
[..]
public Action:TerminateRoundTimer(Handle:timer)
{
// Force round end
if(g_Settings[TerminateRoundEnd]) ServerCommand("mp_ignore_round_win_conditions 0");
g_bAllowRoundEnd = true;
if(Team_GetClientCount(CS_TEAM_CT))
CS_TerminateRound(1.0, CSRoundEnd_CTWin, true);
else if(Team_GetClientCount(CS_TEAM_T))
CS_TerminateRound(1.0, CSRoundEnd_TerroristWin, true);
else CS_TerminateRound(1.0, CSRoundEnd_Draw, true);
}
[..]
public Action:CS_OnTerminateRound(&Float:delay, &CSRoundEndReason:reason)
{
// Allow round end this time
if(g_bAllowRoundEnd)
{
g_bAllowRoundEnd = false;
return Plugin_Continue;
}
// Block round end
if(g_Settings[TerminateRoundEnd])
return Plugin_Handled;
// Let the round end
return Plugin_Continue;
}
Relevant cvar's:
Code:
"mp_maxrounds" = "1"
"mp_timelimit" = "30"
"mp_roundtime" = "30"
This is how a normal round end should look like:
Code:
L 09/26/2015 - 15:13:18: Team "CT" triggered "SFUI_Notice_CTs_Win" (CT "0") (T "0")
L 09/26/2015 - 15:13:18: Team "CT" scored "0" with "16" players
L 09/26/2015 - 15:13:18: Team "TERRORIST" scored "0" with "16" players
L 09/26/2015 - 15:13:18: World triggered "Round_End"
L 09/26/2015 - 15:13:18: World triggered "Intermission_Time_Limit"
And this how not:
Code:
L 09/26/2015 - 15:43:35: Team "CT" triggered "SFUI_Notice_CTs_Win" (CT "0") (T "0")
L 09/26/2015 - 15:43:35: Team "CT" scored "0" with "17" players
L 09/26/2015 - 15:43:35: Team "TERRORIST" scored "0" with "18" players
L 09/26/2015 - 15:43:35: World triggered "Round_End"
L 09/26/2015 - 15:43:36: World triggered "Round_Start"
Decided to post this in the general section, since it's not clear if the issue is code-related, cvar-related or even a game bug.
Anyone else having this problem?
</span>
__________________
Stopped hosting servers as of November 2018, no longer active around here.