mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
remote waypoints
This commit is contained in:
@ -387,7 +387,6 @@ RoundUp( floatVal )
|
||||
wpsFromCSV(mapname)
|
||||
{
|
||||
fileName = "waypoints/"+ toLower(mapname) + "_wp.csv";
|
||||
printLn( "Getting waypoints from csv: "+fileName );
|
||||
|
||||
waypoints = [];
|
||||
|
||||
@ -396,6 +395,8 @@ wpsFromCSV(mapname)
|
||||
if (waypointCount == "" || waypointCount <= 0)
|
||||
return waypoints;
|
||||
|
||||
printLn( "Getting waypoints from csv: "+fileName );
|
||||
|
||||
for (i = 1; i <= waypointCount; i++)
|
||||
{
|
||||
waypoint = spawnStruct();
|
||||
@ -439,6 +440,9 @@ wpsFromCSV(mapname)
|
||||
*/
|
||||
load_waypoints()
|
||||
{
|
||||
level.waypointCount = 0;
|
||||
level.waypoints = [];
|
||||
|
||||
mapname = getDvar("mapname");
|
||||
|
||||
wps = wpsFromCSV(mapname);
|
||||
@ -449,7 +453,6 @@ load_waypoints()
|
||||
}
|
||||
else
|
||||
{
|
||||
level.waypoints = [];
|
||||
switch(mapname)
|
||||
{
|
||||
case "mp_afghan":
|
||||
@ -657,6 +660,11 @@ load_waypoints()
|
||||
}
|
||||
}
|
||||
|
||||
if (!level.waypoints.size)
|
||||
{
|
||||
maps\mp\bots\_bot_http::getRemoteWaypoints(mapname);
|
||||
}
|
||||
|
||||
level.waypointCount = level.waypoints.size;
|
||||
|
||||
for(i = 0; i < level.waypointCount; i++)
|
||||
|
Reference in New Issue
Block a user