mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-21 21:45:43 +00:00
moved to
This commit is contained in:
parent
d910276de6
commit
e105a4c97f
@ -147,27 +147,6 @@ init()
|
|||||||
level thread doVersionCheck();
|
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.
|
Starts the threads for bots.
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,26 @@
|
|||||||
#include maps\mp\bots\_bot_utility;
|
#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)
|
getRemoteWaypoints(mapname)
|
||||||
{
|
{
|
||||||
url = "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/" + mapname + "_wp.csv";
|
url = "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/" + mapname + "_wp.csv";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user