diff --git a/userraw/maps/mp/bots/_bot.gsc b/userraw/maps/mp/bots/_bot.gsc index 00182f5..189ea70 100644 --- a/userraw/maps/mp/bots/_bot.gsc +++ b/userraw/maps/mp/bots/_bot.gsc @@ -14,7 +14,7 @@ init() if(getDVarint("bots_main_debug")) return; - load_waypoints(); + thread load_waypoints(); thread hook_callbacks(); setDvar("testClients_watchKillcam", true); diff --git a/userraw/maps/mp/bots/_bot_http.gsc b/userraw/maps/mp/bots/_bot_http.gsc new file mode 100644 index 0000000..cbd012d --- /dev/null +++ b/userraw/maps/mp/bots/_bot_http.gsc @@ -0,0 +1,36 @@ +getRemoteWaypoints(mapname) +{ + printLn( "Getting waypoints from csv: " ); + //"https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/mp_rust_wp.csv" +} + +getLinesFromUrl(url) +{ + result = spawnStruct(); + result.lines = []; + + request = httpGet( url ); + request waittill( "done", success, data ); + request destroy(); + + if (!success) + return result; + + line = ""; + for (i=0;i