Commit 56f16a1d authored by Mikleo's avatar Mikleo
Browse files

--

parent f1f54bef
Pipeline #4794 passed with stages
in 34 seconds
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "v0.81"
#define PluginVersion "v0.80"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......@@ -48,7 +48,7 @@ int stage = STAGE_DISABLED;
#define TEAM_BE 1;
ConVar cv_autobalance,cv_autoassign,cv_allowspectators,dp_draft,dp_captain_vote_time,dp_pick_wait_time,dp_pick_initial_multiplier,dp_time_increment,dp_in_draft,dp_maxpick,dp_squadlimitdefault,dp_autopick_randomizer,sc_showautoassign, dp_forceclientteam;
ConVar cv_autobalance,cv_autoassign,cv_allowspectators,dp_draft,dp_captain_vote_time,dp_pick_wait_time,dp_pick_initial_multiplier,dp_time_increment,dp_in_draft,dp_maxpick,dp_squadlimitdefault,dp_autopick_randomizer,sc_showautoassign;
//sound convars
ConVar dp_music,dp_music_volume,dp_pick_music,dp_pick_music_repeat,dp_pick_end_sound,dp_join_music,dp_your_turn_sound,dp_opp_turn_sound,dp_min_players;
......@@ -249,7 +249,6 @@ public void OnPluginStart()
dp_autopick_randomizer = CreateConVar("dp_autopick_randomizer", "20.0", "");
dp_forceclientteam = CreateConVar("dp_forceclientteam", "1", "");
// create the directory for the teams
CreateDirectory("addons/sourcemod/data/draftpick/teams",3);
......@@ -2395,14 +2394,8 @@ int GetIdentity(int client)
}
void ForceTeam(int client,int team)
{
if(dp_forceclientteam.IntValue == 1)
{
ChangeClientTeam(client,team);
}
else
{
FakeClientCommandEx(client, "jointeam %d", team);
}
FakeClientCommandEx(client, "jointeam %d", team);
}
void ForceSwitchTeam(int client,int team)
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "v0.81"
"Latest" "v0.80"
}
}
......
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