Add a none option to PathfinderFlags
Posted: Sat Mar 02, 2024 9:56 am
I'm trying to make a mod in which I want biters to move in very specific paths.
Giving 3 biters a set_command to move from point A1,A2,A3 to B1,B2,B3 will usually result in 1 and 3 going to A2, all of them moving to B2 and then splitting up.
Which is way too smart for what I want to achieve. I'm able to mitigate this a bit by making a compound command that just gives them 10-20 different commands for each point along the way that I want them to follow as close as possible but this really feels like fighting against a very smart interface while I just want it to be a lot dumber. To have it be dumb I'd like to have an option in PathfinderFlags that specifies something like none and if that is enabled it shouldn't do any pathfinding but just let the biter run from A to B and fail the command if it bumps into anything.
tldr: add a none option to PathfinderFlags that removes any pathfinding in set_command.
Giving 3 biters a set_command to move from point A1,A2,A3 to B1,B2,B3 will usually result in 1 and 3 going to A2, all of them moving to B2 and then splitting up.
Which is way too smart for what I want to achieve. I'm able to mitigate this a bit by making a compound command that just gives them 10-20 different commands for each point along the way that I want them to follow as close as possible but this really feels like fighting against a very smart interface while I just want it to be a lot dumber. To have it be dumb I'd like to have an option in PathfinderFlags that specifies something like none and if that is enabled it shouldn't do any pathfinding but just let the biter run from A to B and fail the command if it bumps into anything.
tldr: add a none option to PathfinderFlags that removes any pathfinding in set_command.