wpedit md

This commit is contained in:
INeedBots 2020-12-12 23:56:30 -06:00
parent 59864b8fea
commit 810e2ee9c8
3 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar
- [Credits](#Credits) - [Credits](#Credits)
## Features ## 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. - 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 ## Documentation
### Menu Usage ### 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 ### DVARs
- bots_manage_add - an integer amount of bots to add to the game, resets to 0 once the bots have been added. - bots_manage_add - an integer amount of bots to add to the game, resets to 0 once the bots have been added.

View File

View File

@ -127,6 +127,10 @@ watchAstarCommand()
for (;;) for (;;)
{ {
self waittill("astar"); self waittill("astar");
if (1)
continue;
self iprintln("Start AStar"); self iprintln("Start AStar");
self.astar = undefined; self.astar = undefined;
astar = spawnStruct(); astar = spawnStruct();
@ -136,7 +140,7 @@ watchAstarCommand()
self iprintln("End AStar"); self iprintln("End AStar");
astar.goal = self.origin; 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 iprintln("AStar size: " + astar.nodes.size);
self.astar = astar; self.astar = astar;