diff --git a/userraw/maps/mp/bots/_bot_http.gsc b/userraw/maps/mp/bots/_bot_http.gsc index 2a746cd..509e130 100644 --- a/userraw/maps/mp/bots/_bot_http.gsc +++ b/userraw/maps/mp/bots/_bot_http.gsc @@ -1,3 +1,5 @@ +#include maps\mp\bots\_bot_utility; + getRemoteWaypoints(mapname) { url = "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/" + mapname + "_wp.csv"; @@ -43,35 +45,7 @@ linesToWaypoints(res) { tokens = tokenizeLine(res.lines[i], ","); - waypoint = spawnStruct(); - - orgStr = tokens[0]; - orgToks = strtok(orgStr, " "); - waypoint.origin = (int(orgToks[0]), int(orgToks[1]), int(orgToks[2])); - - childStr = tokens[1]; - childToks = strtok(childStr, " "); - waypoint.childCount = childToks.size; - waypoint.children = []; - for( j=0; j