Commit 6cdb4885 authored by Mikleo's avatar Mikleo

--

parent 0dc8dbd8
Pipeline #12005 passed with stages
in 18 seconds
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.12"
#define PluginVersion "1.13"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......@@ -1131,7 +1131,7 @@ public Action Timer_Tick(Handle timer,client)
Format(hintMsg,sizeof(hintMsg),"%s\n%s: %d",hintMsg,clientName,leader2votes);
}
Format(hintMsg,sizeof(hintMsg),"%s\n%d votes required",hintMsg,captainVoteLimit);
Format(hintMsg,sizeof(hintMsg),"%s\nEach Commander Needs %d Votes ",hintMsg,captainVoteLimit);
PrintHintTextToAll(hintMsg);
}
......@@ -2079,12 +2079,15 @@ void SetUpDraft(mode)
if(!EU_HasGameStarted())
{
dp_in_draft.IntValue = 1;
// make sure everyone on be is moved to nf
for (int i=1; i<=MaxClients; i++)
{
if(IsClientInGame(i) && GetClientTeam(i) == 3)
if(IsClientInGame(i))
{
ForceTeam(i,2);
// make sure everyone on be is moved to nf
if(GetClientTeam(i) == 3)
ForceTeam(i,2);
}
}
......@@ -2172,6 +2175,9 @@ DraftEnded()
squads[i] = 0;
identities[i] = 0;
AdjustPrefix(i);
//SetEntProp(i, Prop_Send, "m_iHideHUD", GetEntProp(i, Prop_Send, "m_iHideHUD")&~HIDEHUD_CROSSHAIR);
}
}
EU_ResumeTimer(pauseHandle);
......@@ -3132,6 +3138,7 @@ Stage_Pick_End()
Stage_Game_Start()
{
PlaySoundToAll(sound_pick_end);
PrintHintTextToAll("Team Selection Complete");
// add everyone to the correct team.
Format(mBuffer,sizeof(mBuffer),"\x04[DP] \x01 All players drafted. Vote for a commander and organize your teams!");
......@@ -3355,6 +3362,8 @@ Stage_Disabled_End()
RefreshTeamBalanceCvars();
PrintToChatAll("\x04[DP] \x01Draft pick enabled");
}
ChangeStage(int stg)
{
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.12"
"Latest" "1.13"
}
}
......
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