Page 1 of 1

Pathfinding flag to avoid biters

Posted: Mon May 25, 2020 4:35 pm
by Baughn
I have a group of bots, used for construction. They do not have any military ability, but they positively enjoy running towards walls in order to repair them. Specifically: They're given a movement command with the target set to the wall.

Sometimes, the fastest path to the wall involves running outside the walls. Sometimes there are biters there, and there was an alternate, slightly longer path which would have kept them out of harm's way. It would be nice to have a flag that increases the per-tile cost of pathing over tiles that happen to have piles of biter corpses, or perhaps which have biters nearby -- whatever you think is the most reasonable calculation here.

Call it "is_coward", maybe?

Re: Pathfinding flag to avoid biters

Posted: Mon May 25, 2020 5:21 pm
by Rseding91
I don't see this as ever happening. It would add a load of complexity and overhead to pathfinding for something the base game would never use.