Commit 903b4119 authored by Mikleo's avatar Mikleo

--

parent 75616bd0
Pipeline #9499 passed with stages
in 15 seconds
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <SteamWorks> #include <SteamWorks>
#define PluginVersion "1.03" #define PluginVersion "1.04"
float pVersion; float pVersion;
// note linearmap field is unstable // note linearmap field is unstable
...@@ -192,6 +192,8 @@ public void OnPluginStart() ...@@ -192,6 +192,8 @@ public void OnPluginStart()
RegAdminCmd("sm_settickets", Command_Set_TeamData, ADMFLAG_SLAY); RegAdminCmd("sm_settickets", Command_Set_TeamData, ADMFLAG_SLAY);
RegAdminCmd("sm_setresources", Command_Set_TeamData, ADMFLAG_SLAY); RegAdminCmd("sm_setresources", Command_Set_TeamData, ADMFLAG_SLAY);
RegAdminCmd("sm_gamedesc", Command_Set_GameDesc, ADMFLAG_SLAY);
RegConsoleCmd("sm_scenario", Command_Scenario_Info); RegConsoleCmd("sm_scenario", Command_Scenario_Info);
...@@ -4099,7 +4101,7 @@ bool LoadScenario(int client,char[] filename) ...@@ -4099,7 +4101,7 @@ bool LoadScenario(int client,char[] filename)
if(LibraryExists("SteamWorks")) if(LibraryExists("SteamWorks") && StrContains(filename,"override") == -1)
{ {
char description[64]; char description[64];
currentScenarioKV.GetString("Description",description,sizeof(description)); currentScenarioKV.GetString("Description",description,sizeof(description));
...@@ -5752,6 +5754,14 @@ public Action Command_Set_TeamData(int client, int args) ...@@ -5752,6 +5754,14 @@ public Action Command_Set_TeamData(int client, int args)
return Plugin_Handled; return Plugin_Handled;
} }
public Action Command_Set_GameDesc(int client, int args)
{
char arg[128];
GetCmdArg(1, arg, sizeof(arg));
SteamWorks_SetGameDescription(arg);
return Plugin_Handled;
}
void reloadMapConfig() void reloadMapConfig()
{ {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{ {
"Version" "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