Commit a18f253d authored by Mikleo's avatar Mikleo
Browse files

--

parent d7e44428
Pipeline #9501 passed with stages
in 20 seconds
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.09"
#define PluginVersion "1.10"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......@@ -60,6 +60,8 @@ int mp_autoteambalance_skilldifference_default = 10;
//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;
ConVar sc_gamedesc_stage;
char sound_pick_music[128],sound_pick_end[128],sound_join_music[128],sound_opp_turn[128],sound_your_turn[128];
......@@ -308,6 +310,13 @@ public void OnPluginStart()
}
public void OnAllPluginsLoaded()
{
sc_gamedesc_stage = FindConVar("sc_gamedesc_stage");
}
LoadDraftMusic()
{
LoadMusic("addons/sourcemod/data/draftpick/wait_music.txt",waitMusic);
......@@ -1087,9 +1096,20 @@ public Action Timer_Tick(Handle timer,client)
}
if(sc_gamedesc_stage != INVALID_HANDLE)
{
char message[32];
Format(message,sizeof(message)," Draft Stage (%ds)",tickTime);
sc_gamedesc_stage.SetString(message,false,false);
}
char text[128];
if(stage == STAGE_GAME)
{
SetHudTextParams(-1.0,0.9, 1.0, 100, 255, 100, 255);
......@@ -2085,6 +2105,16 @@ DraftEnded()
{
KillTimer(TickHandle);
TickHandle = INVALID_HANDLE;
if(sc_gamedesc_stage != INVALID_HANDLE)
{
// remove the override on the stage gamedesc.
sc_gamedesc_stage.SetString("",false,false);
}
}
// remove player prefixes
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.09"
"Latest" "1.10"
}
}
......
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