Skip to content

Bots walk on vehicle paths #297

Description

@tagener-noisu

Scope

General bot behavior

What happened?

Sometimes when bots exit vehicles or just spawn on players, they go for the closest path, which could be a land vehicle path.

The problem with vehicle paths is that sometimes trace creators don't connect them with infantry paths and bots can't reach their objectives, sometimes they just walk back and forth if the path is not looped. Also vehicle paths have speed modes that don't really work for infantry, so you can see bots going prone in the middle of a road.

What was expected?

Let bots walk on vehicle paths. They should ignore speed modes if they are on a vehicle path.

And then we have these options:

  • Make bots switch paths as soon as they find a connected infantry path and never go back on vehicle paths. It requires checking and fixing all vehicle traces that are not connected to any infantry traces on each map.
  • Make bots search for closest infantry paths inside a given radius. Switch as soon as a viable path is found. Not sure about the performance of this solution yet.

I could fix that myself, but I want to hear your opinions and ideas.

How can we reproduce and test it?

Create two paths, one vehicle path and one infantry path. Connect them and spawn a bot.

Version of fun-bots and VU?

fun-bots 2.8.0-dev5

I have checked the following... (if applicable)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions