mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
use printconsole
This commit is contained in:
parent
ca0131f03d
commit
5d5441ba27
@ -16,18 +16,18 @@ doVersionCheck()
|
||||
|
||||
if (!isDefined(remoteVersion))
|
||||
{
|
||||
println("Error getting remote version of Bot Warfare.\n");
|
||||
PrintConsole("Error getting remote version of Bot Warfare.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (level.bw_VERSION != remoteVersion)
|
||||
{
|
||||
println("There is a new version of Bot Warfare!\n");
|
||||
println("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!\n");
|
||||
PrintConsole("There is a new version of Bot Warfare!\n");
|
||||
PrintConsole("You are on version " + level.bw_VERSION + " but " + remoteVersion + " is available!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
println("You are on the latest version of Bot Warfare!\n");
|
||||
PrintConsole("You are on the latest version of Bot Warfare!\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ getRemoteWaypoints(mapname)
|
||||
url = "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/" + mapname + "_wp.csv";
|
||||
filename = "waypoints/" + mapname + "_wp.csv";
|
||||
|
||||
println("Attempting to get remote waypoints from " + url);
|
||||
PrintConsole("Attempting to get remote waypoints from " + url + "\n");
|
||||
res = getLinesFromUrl(url, filename);
|
||||
|
||||
if (!res.lines.size)
|
||||
@ -48,7 +48,7 @@ getRemoteWaypoints(mapname)
|
||||
waypointCount = int(res.lines[0]);
|
||||
|
||||
waypoints = [];
|
||||
println("Loading remote waypoints...");
|
||||
PrintConsole("Loading remote waypoints...\n");
|
||||
|
||||
for (i = 1; i <= waypointCount; i++)
|
||||
{
|
||||
@ -62,7 +62,7 @@ getRemoteWaypoints(mapname)
|
||||
if (waypoints.size)
|
||||
{
|
||||
level.waypoints = waypoints;
|
||||
println("Loaded " + waypoints.size + " waypoints from remote.");
|
||||
PrintConsole("Loaded " + waypoints.size + " waypoints from remote.\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -750,7 +750,7 @@ readWpsFromFile(mapname)
|
||||
if (!res.lines.size)
|
||||
return waypoints;
|
||||
|
||||
println("Attempting to read waypoints from " + filename);
|
||||
PrintConsole("Attempting to read waypoints from " + filename + "\n");
|
||||
|
||||
waypointCount = int(res.lines[0]);
|
||||
|
||||
@ -781,7 +781,7 @@ load_waypoints()
|
||||
if (wps.size)
|
||||
{
|
||||
level.waypoints = wps;
|
||||
println("Loaded " + wps.size + " waypoints from csv.");
|
||||
PrintConsole("Loaded " + wps.size + " waypoints from csv.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -992,7 +992,7 @@ load_waypoints()
|
||||
}
|
||||
|
||||
if (level.waypoints.size)
|
||||
println("Loaded " + level.waypoints.size + " waypoints from script.");
|
||||
PrintConsole("Loaded " + level.waypoints.size + " waypoints from script.\n");
|
||||
}
|
||||
|
||||
if (!level.waypoints.size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user