added extra rtv requirements. we add more rtv's on lower player count than on higher player count. so its harder to rtv with an empty server and less difficult on a full. was requested by some admins
This commit is contained in:
parent
15d44df991
commit
895c9639d6
@ -225,6 +225,12 @@ void update_g_VotesNeeded()
|
|||||||
{
|
{
|
||||||
g_VotesNeeded = 1;
|
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()
|
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 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);
|
ReplyToCommand(client, "[RTVE] Currently %d Players needed to start a RTV vote.", iVotesNeededTotal);
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
Loading…
Reference in New Issue
Block a user