From 810e2ee9c8e2e04d489aef90683d5c06e01ef0ec Mon Sep 17 00:00:00 2001 From: INeedBots Date: Sat, 12 Dec 2020 23:56:30 -0600 Subject: [PATCH] wpedit md --- README.md | 8 ++++---- userraw/bw-assets/wpedit.md | 0 userraw/maps/mp/bots/_wp_editor.gsc | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 userraw/bw-assets/wpedit.md diff --git a/README.md b/README.md index 3ae8fb2..b8cbcf7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar - [Credits](#Credits) ## Features -- A Waypoint Editor for creating and modifying bot's waypoints of traversing the map. Have a look at [Using the Waypoint editor](). +- A Waypoint Editor for creating and modifying bot's waypoints of traversing the map. Have a look at [Using the Waypoint editor](/userraw/bw-assets/wpedit.md). - A clean and nice menu, you can edit every bot DVAR within in-game. @@ -65,11 +65,11 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar ## Documentation ### Menu Usage -You can open the menu by pressing the Action Slot 2 key (default '5'). +- You can open the menu by pressing the Action Slot 2 key (default '5'). -You can navigate the options by pressing your movement keys (default WASD), and you can select options by pressing your jump key (default SPACE). +- You can navigate the options by pressing your movement keys (default WASD), and you can select options by pressing your jump key (default SPACE). -Pressing the menu button again closes menus. +- Pressing the menu button again closes menus. ### DVARs - bots_manage_add - an integer amount of bots to add to the game, resets to 0 once the bots have been added. diff --git a/userraw/bw-assets/wpedit.md b/userraw/bw-assets/wpedit.md new file mode 100644 index 0000000..e69de29 diff --git a/userraw/maps/mp/bots/_wp_editor.gsc b/userraw/maps/mp/bots/_wp_editor.gsc index b57312b..2bc5c30 100644 --- a/userraw/maps/mp/bots/_wp_editor.gsc +++ b/userraw/maps/mp/bots/_wp_editor.gsc @@ -127,6 +127,10 @@ watchAstarCommand() for (;;) { self waittill("astar"); + + if (1) + continue; + self iprintln("Start AStar"); self.astar = undefined; astar = spawnStruct(); @@ -136,7 +140,7 @@ watchAstarCommand() self iprintln("End AStar"); astar.goal = self.origin; - astar.nodes = AStarSearch(astar.start, astar.goal, self.team, false); + astar.nodes = AStarSearch(astar.start, astar.goal, undefined, true); self iprintln("AStar size: " + astar.nodes.size); self.astar = astar;