Pathfinding flag to avoid biters
Posted: Mon May 25, 2020 4:35 pm
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?
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?