Log messages added to MapChooser to help debug issues with repeated or early votes.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401523
This commit is contained in:
Michael McKoy 2007-10-02 00:23:14 +00:00
parent af12ff000b
commit f8e2a09b39

View File

@ -154,6 +154,7 @@ SetupTimeleftTimer()
new startTime = GetConVarInt(g_Cvar_StartTime) * 60; new startTime = GetConVarInt(g_Cvar_StartTime) * 60;
if (time - startTime < 0) if (time - startTime < 0)
{ {
LogMessage("Vote triggered in SetupTimelefTimer().");
InitiateVote(); InitiateVote();
} }
else else
@ -178,10 +179,12 @@ public Action:Timer_StartMapVote(Handle:timer)
if (timer == g_RetryTimer) if (timer == g_RetryTimer)
{ {
LogMessage("Vote triggered in Timer_StartMapVote(), retry.");
g_RetryTimer = INVALID_HANDLE; g_RetryTimer = INVALID_HANDLE;
} }
else else
{ {
LogMessage("Vote triggered in Timer_StartMapVote(), normal.");
g_VoteTimer = INVALID_HANDLE; g_VoteTimer = INVALID_HANDLE;
} }
@ -244,6 +247,7 @@ public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{ {
if (team[1] > winlimit - GetConVarInt(g_Cvar_StartRounds)) if (team[1] > winlimit - GetConVarInt(g_Cvar_StartRounds))
{ {
LogMessage("Vote triggered in Event_RoundEnd(), winlimit.");
InitiateVote(); InitiateVote();
} }
} }
@ -256,6 +260,7 @@ public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{ {
if (total > maxrounds - GetConVarInt(g_Cvar_StartRounds)) if (total > maxrounds - GetConVarInt(g_Cvar_StartRounds))
{ {
LogMessage("Vote triggered in Event_RoundEnd(), maxrounds.");
InitiateVote(); InitiateVote();
} }
} }
@ -277,12 +282,14 @@ public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
new fragger = GetClientOfUserId(GetEventInt(event, "attacker")); new fragger = GetClientOfUserId(GetEventInt(event, "attacker"));
if (fragger && GetClientFrags(fragger) > (GetConVarInt(g_Cvar_Fraglimit) - GetConVarInt(g_Cvar_StartFrags))) if (fragger && GetClientFrags(fragger) > (GetConVarInt(g_Cvar_Fraglimit) - GetConVarInt(g_Cvar_StartFrags)))
{ {
LogMessage("Vote triggered in Event_PlayerDeath(), flaglimit.");
InitiateVote(); InitiateVote();
} }
} }
public Action:Command_Mapvote(client, args) public Action:Command_Mapvote(client, args)
{ {
LogMessage("Vote triggered in Command_Mapvote(), user command.");
InitiateVote(); InitiateVote();
return Plugin_Handled; return Plugin_Handled;