- Joined
- Mar 27, 2012
- Messages
- 3,232
At short ranges melee units don't really care as much about their range.
I made 2 units with 8 collision size. One of them 0 range, the other 50.
I let the 50 range unit hit the 0 range one once. Then I ordered the 0 range to hit back. It didn't move to do so.
I tested a bit more and it seems the game actually considers range in units of 64, because as I changed the longer range to 64 the shortrange had to move.
However, later tests gave weird results. Sometimes a range of 50 is too short for the 0-range to move, sometimes it's not. Turns out that the minimum range of a melee unit is not strict.
It's actually so that no matter how short the range you set, it can always attack the nearest cell(the smallest one, which is 32 size).
So if your unit has 32 range it can actually attack to a range of 32-64, depending on circumstances. E.g, if you put 2 units at the edges of small cells then they are still in neighbouring cells and thus can attack each other, even though out of each other's range.
I made 2 units with 8 collision size. One of them 0 range, the other 50.
I let the 50 range unit hit the 0 range one once. Then I ordered the 0 range to hit back. It didn't move to do so.
I tested a bit more and it seems the game actually considers range in units of 64, because as I changed the longer range to 64 the shortrange had to move.
However, later tests gave weird results. Sometimes a range of 50 is too short for the 0-range to move, sometimes it's not. Turns out that the minimum range of a melee unit is not strict.
It's actually so that no matter how short the range you set, it can always attack the nearest cell(the smallest one, which is 32 size).
So if your unit has 32 range it can actually attack to a range of 32-64, depending on circumstances. E.g, if you put 2 units at the edges of small cells then they are still in neighbouring cells and thus can attack each other, even though out of each other's range.