I hope you know how to use console commands. Basically the idea is that you show the console, pressing the `
key; input a command, and that command does something.
The most important command is to show waypoints, you do this inputting:
botrix waypoint drawtype beam
in the console, and this shows waypoints for the current map.
Waypoints are connected with paths
. Bot uses those paths to move from one waypoint to another. Paths also can have type
, for example if bot needs to crouch
(sit down, CTRL key) before move from one waypoint to another, then the path type is crouch
. To show paths, input in the console:
botrix path drawtype beam
You will see that one of the waypoints has label destination
and other has label current
. Basically current
waypoint is the closest one to you; and destination
is the waypoint where you are looking at, and I will call that path as current path
. You can add a path from current to destination (current path) using command:
botrix path create
You can also assign keyboard key to some command (this is called
binding), so you don't need to input that command every time, but just
press a key on the keyboard instead.
botrix waypoint create
creates a waypoint at current player position. This command you will use often, so if you input in the console:
bind "F1" "botrix waypoint create"
after that you can just press F1
key to create a waypoint. You can check my configuration file for binding:
Basically this configuration file has all the needed binds to create
waypoints. If you copy this file into cfg folder, just input in the
and this will execute configuration file with binds. The most importants binds are:
- create waypoint at player position
- remove waypoint at player position
- save waypoints (they are saved in botrix/waypoints folder as <map-name>.way)
- load waypoints
- add path (remember, from current
waypoint to destination
waypoint, i.e. current path
- remove path
- add ladder
type to current path (so bot knows this is a ladder)
- add break
type to current path (so bot uses crowbar and hits, to break a grid on his way for example)
- add jump
type to current path (so bot jumps from current to destination waypoint)
- add crouch
type to current path (so bot sits before moving to destination waypoint)
current path type (you can use it if you erroneously added type to current path)
lock waypoint destination to current (you will need to input botrix waypoint destination -1
- test current path, creates bot that goes from current waypoint to destination waypoint.
So, you move around the map, pressing F1
to add waypoints. Waypoint paths will be added automatically between
nearby waypoints, but maybe you will need to add some paths and path
types (or remove some path types if they were added erroneously).
Play with it, test it, don't forget to save waypoints (press F3
) before exiting and send them to me :)
I will publish them. Also, let me know if you have any questions.