Vehicle Pathing
From Omni-bot Wiki
| ET Main Page | Vehicle Pathing | Archives |
Pathing For Vehicles
When pathing for vehicles in Enemy Territory, waypointers must create paths on at least one side of the vehicle for the entire route. It is recommended to create paths on each side of the vehicle as shown here:
Usage of the blockable flag is necessary wherever the tank may cross over any connections between the paths. In the picture, the red lines mark the connections currently blocked by the tank. To add the blockable flags to the waypoints you may consider binding a key as typical vehicle paths require several blockable connections:
bind x bot waypoint_addflag blockable wall
Placement of the waypoints is critical as bots that try to repair the tank will travel to the closest node to the constructable goal first. No waypoints should be placed in a location where they will be potentially covered by the vehicle. In Omni-bot version 0.65 and above, there are two tools available that will help ensure that the vehicles can be repaired along the entire route; BuildVehiclePath and CheckVehiclePath. Essentially, these two commands will damage the vehicle at a given interval which makes it easy to see where waypoints should be placed.
Cheats Enabled is required for both commands. To enable cheats while waypointing, you will need to start the map with the devmap command:
/devmap mapname
It is also recommended that the g_engineerChargeTime cvar is set to 0 to make rebuilding the vehicle go quicker.
Build Vehicle Path
syntax: /bot bvp goalname1 goalname2 <optional seconds> example: /bot bvp MAP_CONSTRUCTION_tank_construct MAP_MOVER_tank 2
goalname1 should be set the the construct goal and goalname2 should be set to the vehicles goal name. The last parameter is the number of seconds to wait before the vehicle will be damaged.
This command will automatically damage the tank after the waypointer repairs it. The default interval is 2 seconds and can be set with the optional parameter.
To turn the command off, type:
/bot bvpo
Check Vehicle Path
syntax: /bot cvp goalname1 goalname2 <optional seconds> example: /bot cvp MAP_CONSTRUCTION_tank_construct MAP_MOVER_tank 2
goalname1 should be set the the construct goal and goalname2 should be set to the vehicles goal name. The last parameter is the number of seconds to wait before the vehicle will be damaged.
This command is used to check if bots can repair the vehicle at each point along the vehicle path. Once issued, the command will damage the vehicle and add an engineer bot to the correct team. The waypointer can then watch and update any pathing that requires adjusting.
To turn the command off, type:
/bot cvpo