Stratego (dev) wrote: ↑Mon Apr 11, 2022 3:58 pm
new:
Code: Select all
IS_INFINITE_TALL, // units that should not be shot over, "spell" over, fly over - so anything behind is protected (like a wall in a room)
in AOF i set it to the cave wall unit (grey and brown), please contact me if you want to set it to anything else, i try to have it used only for real "room" walls.
Nice idea there, I can see a lot of uses for this one (and maybe for setting the ground for a non-infinitely tall version of the spec in the future).
A problem I can see with its current form is that bresenham is orientation-dependent, so it could (and most likely will) happen in some cases that a unit is able to fire through one of these, while the unit that is being targeted can't fire back, and could lead to some hard to predict behavior for players even if a preferred orientation was set. My suggestion would be to mark all tiles that the line between the two units touches as being part of the path, and prevent firing/etc. if one of them has a unit with this spec.