diff --git a/mapchooser_extended/scripting/rockthevote_extended_avg.sp b/mapchooser_extended/scripting/rockthevote_extended_avg.sp index c92b444..24987ab 100755 --- a/mapchooser_extended/scripting/rockthevote_extended_avg.sp +++ b/mapchooser_extended/scripting/rockthevote_extended_avg.sp @@ -225,6 +225,12 @@ void update_g_VotesNeeded() { g_VotesNeeded = 1; } + int extra_rtv = MAXPLAYERS / g_VotesNeeded; + if (extra_rtv >= g_VotesNeeded) + { + extra_rtv = g_VotesNeeded / 2; + } + g_VotesNeeded += extra_rtv; } void UpdateRTV() @@ -499,6 +505,13 @@ public Action Command_DebugRTV(int client, int args) } int iVotesNeededTotal = RoundToFloor(float(iVoters) * GetConVarFloat(g_Cvar_Steam_Needed)); + + int extra_rtv = MAXPLAYERS / iVotesNeededTotal; + if (extra_rtv >= iVotesNeededTotal) + { + extra_rtv = iVotesNeededTotal / 2; + } + iVotesNeededTotal += extra_rtv; ReplyToCommand(client, "[RTVE] Currently %d Players needed to start a RTV vote.", iVotesNeededTotal); return Plugin_Handled;