This is another example of the advantages of one-way connections. On the right, they will avoid the edge and not get stuck. On the left, the bots may get stuck at the corner of the edge while trying to traverse the stairs. Make a one-way connection from the lower to the spliced, then from spliced to upper. Remove the connections of the spliced area from both other areas. Then, add an area in between the upper and the lower area, using nav_splice. In this mesh, the bot will not jump from the balcony on the box, but on the other hand, will jump from the box on the balcony.Ĭonnect the higher area to the lower, but not vice-versa. We can cause different bot behaviour, depending on the direction that the bots intend on going. We do this to tell the bots that they can climb the edge, but we tell them they can only do so by jumping by marking the spliced area with nav_jump.įurthermore, we add nav_avoid because climbing the edge slows the bots down and they should preferably take an alternative route. We replace the connection between the edge and the ramp with an area ( nav_mark on the ramp, point at the edge, then enter nav_splice this will create an area between the two other areas). In the picture to the right, we will fix this by first, discouraging the bots from jumping pointlessly, using nav_no_jump on the ramp area. When they try to climb the edge by jumping, they will likely be stuck because of the left-hand wall. In the picture to the left, the mesh causes the bots to jump on the ramp repeatedly. However, also bear in mind that some areas must be kept divided and should not be simplified because they might be vital for adding place names later on. This can be used to create certain preferences for the bots' pathfinding. Keep in mind, bots prefer fewer, large areas over small, scattered ones. Make your life easier by simplifying the nav mesh.ĭo this by selecting the stairs areas ( nav_toggle_selecting, enter again when done selecting you can unselect individual areas with nav_mark).Īfter selecting, enter nav_simplify_selected. Tidying up the meshEditing cluttered nav meshes is possible, yet exhausting. Keep in mind that this tutorial is technically also suitable for creating CS:GO nav meshes, as the nav mesh editors are almost identical. The nav mesh editor ( nav_edit 1) will help you a great deal.īelow, you will find a few tips on creating more effective nav meshes. Run tests with bots and take note of problematic spots, for instance, where bots keep getting stuck, or ways that bots never traverse, etc. Have a nav mesh, but bots are stupid anyway?Then let's get to some fine-tuning.įor basic techniques, please refer to the aforementioned tutorial.Ī good idea to fine-tune a nav mesh will be to "de-bug" it. Now retry the procedure with the walkable marks. In case you find one, point at it with the cursor, and if the cursor is green, enter nav_build_ladder. In case this still fails, try creating an area, where there should be, with nav_begin_area and nav_end_area respectively.Īlso check for unbuilt ladders. This will try to create meshes at the places where there are walkable marks. Then, when you think you have covered enough space, enter nav_generate_incremental. This will place a walkable mark for later. To do this, look at the approximate spot and enter nav_mark_walkable. Update: Fortunately, there is also a way to add meshes where, through nav_generate, it's not possible to generate one.Īdd walkable marks to spots where there is no mesh but where there should be. Note: not all maps support the generation of nav meshes.įor example, you may get an error on some bunnyhop maps: Enter nav_generate into the console after enabling cheats ( sv_cheats 1). Waypointing in Counter-Strike is a vital part to make a map suitable for usage with bots. This is a response to aleksandr's tutorial for Waypointing in CS:S. Install and manage your mods easily with community-made 1-Click mod downloaders. ↺16 The Legend of Zelda: Breath of the Wild (WiiU) ↺4 Pokemon Brilliant Diamond and Shining Pearl To create shortcuts to your favorite games!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |