Commit 67c9482a authored by Mikleo's avatar Mikleo
Browse files

--

parent 4cd11155
Pipeline #8535 passed with stages
in 19 seconds
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.03"
#define PluginVersion "1.04"
#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.11", "Percent of players needed to vote for each captain");
dp_captainvote_playerratio = CreateConVar("dp_captainvote_playerratio", "0.12", "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");
......@@ -1102,7 +1102,15 @@ public Action Timer_Tick(Handle timer,client)
}
else if(stage == STAGE_AUTOPICKWAIT)
{
Format(text,sizeof(text),"Team Selection in %d secs",tickTime);
if(tickTime == 0 && dp_autodraft_comms.IntValue == 1)
{
Format(text,sizeof(text),"Waiting for Commanders...");
}
else
{
Format(text,sizeof(text),"Team Selection in %d secs",tickTime);
}
}
......@@ -1332,12 +1340,7 @@ bool TryAssignCaptains()
if(!AreCaptainsFull())
{
if(draftMode == MODE_AUTODRAFT || draftMode == MODE_AUTOSQUADDRAFT)
{
PrintToChatAll("\x04[DP] \x01Not all commanders assigned. Resetting vote.");
tickTime = 20;
}
else
if(draftMode == MODE_DRAFT || draftMode == MODE_SQUADDRAFT)
{
PrintToChatAll("\x04[DP] \x01Not all captains assigned. Resetting vote.");
tickTime = dp_captain_vote_time.IntValue;
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.03"
"Latest" "1.04"
}
}
......
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