This commit is contained in:
INeedBots 2020-09-19 20:29:03 -06:00
parent d910276de6
commit e105a4c97f
2 changed files with 21 additions and 21 deletions

View File

@ -147,27 +147,6 @@ init()
level thread doVersionCheck();
}
doVersionCheck()
{
remoteVersion = maps\mp\bots\_bot_http::getRemoteVersion();
if (!isDefined(remoteVersion))
{
println("Error getting remote version of Bot Warfare.");
return false;
}
if (level.bw_VERSION != remoteVersion)
{
println("There is a new version of Bot Warfare!");
println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!");
return false;
}
println("You are on the latest version of Bot Warfare!");
return true;
}
/*
Starts the threads for bots.
*/

View File

@ -1,5 +1,26 @@
#include maps\mp\bots\_bot_utility;
doVersionCheck()
{
remoteVersion = getRemoteVersion();
if (!isDefined(remoteVersion))
{
println("Error getting remote version of Bot Warfare.");
return false;
}
if (level.bw_VERSION != remoteVersion)
{
println("There is a new version of Bot Warfare!");
println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!");
return false;
}
println("You are on the latest version of Bot Warfare!");
return true;
}
getRemoteWaypoints(mapname)
{
url = "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/" + mapname + "_wp.csv";