Commit 4cd11155 authored by Mikleo's avatar Mikleo
Browse files

--

parent 92823038
Pipeline #8534 passed with stages
in 17 seconds
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.02"
#define PluginVersion "1.03"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......@@ -253,7 +253,7 @@ public void OnPluginStart()
dp_maxpick = CreateConVar("dp_maxpick", "40", "maximum number of picks before autopick");
dp_overlay = CreateConVar("dp_overlay", "draftpick/draft_background", "The overlay for draft mode.");
dp_autodraft_comms = CreateConVar("dp_autodraft_comms", "1", "Decide comms in autodraft.");
dp_captainvote_playerratio = CreateConVar("dp_captainvote_playerratio", "0.2", "Percent of players needed to vote for each captain");
dp_captainvote_playerratio = CreateConVar("dp_captainvote_playerratio", "0.11", "Percent of players needed to vote for each captain");
dp_autodraft_display_pick = CreateConVar("dp_autodraft_display_pick", "0", "Should autodraft pick be displayed in chat");
......@@ -1056,7 +1056,7 @@ public Action Timer_Tick(Handle timer,client)
if(stage == STAGE_CAPTAINVOTE || stage == STAGE_AUTOPICKWAIT && dp_autodraft_comms.IntValue == 1)
{
captainVoteLimit = RoundToCeil(GetTeamClientCount(2) * dp_captainvote_playerratio.FloatValue);
captainVoteLimit = 1 + RoundToFloor(GetTeamClientCount(2) * dp_captainvote_playerratio.FloatValue);
int leader1,leader2 = -1;
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.02"
"Latest" "1.03"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment