• 0

    posted a message on Pathfinding - treat units as structures?

    Hey guys,

    I'm one of the co-developers of Drizen 10-Way Defense on the SC2 arcade, and one of the longstanding bugs/exploits of the map that has persisted through time has been the fact that enemies treat your units differently from your buildings. That is, they still assume that the path is open even if a unit is blocking it. Enemies will recognize buildings as walls that they need to path around but not units. This causes them to get stuck in an endless move cycle where they keep trying to ram themselves through your unit to no avail. The idea behind the map as a tower defense style game is that enemies are supposed to attack you when you wall because they realize the path is blocked and stop moving. This is the way it used to work in SC1 for both units and buildings, and they do this fine with buildings in SC2, but with units they get confused and keep trying to move through, allowing you to hold them in place while they get shot to death.

    Is there an easy fix for this? I was hoping this isn't even an issue that would require complex re-scripting of pathfinding. There must be some kind of collision flag somewhere that I can just tick which will make them treat units like buildings while pathfinding so that they recognize units as walls and try to path around them. Any ideas or alternative solutions?

    I could make it so that enemies collide with buildings but ignore my units altogether. However I would prefer not to do this solution because of a number of reasons.

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.