Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
sourcemod
DraftPick
Commits
6cdb4885
Commit
6cdb4885
authored
Dec 13, 2020
by
Mikleo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
0dc8dbd8
Pipeline
#12005
passed with stages
in 18 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
dist/addons/sourcemod/plugins/draftpick.smx
dist/addons/sourcemod/plugins/draftpick.smx
+0
-0
dist/addons/sourcemod/scripting/draftpick.sp
dist/addons/sourcemod/scripting/draftpick.sp
+14
-5
dist/updater.txt
dist/updater.txt
+1
-1
No files found.
dist/addons/sourcemod/plugins/draftpick.smx
View file @
6cdb4885
No preview for this file type
dist/addons/sourcemod/scripting/draftpick.sp
View file @
6cdb4885
...
...
@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.1
2
"
#define PluginVersion "1.1
3
"
#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
v
otes
required
",hintMsg,captainVoteLimit);
Format(hintMsg,sizeof(hintMsg),"%s\n
Each Commander Needs
%d
V
otes ",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)
{
...
...
dist/updater.txt
View file @
6cdb4885
...
...
@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.1
2
"
"Latest" "1.1
3
"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment