- Joined
- Nov 3, 2013
- Messages
- 989
The question:
How can I make ranged units have a larger collision size towards other ranged units than to melee and player heroes to naturally leave some space between each other for other units to slip past them without taking long detours?
(Basically like how some buildings have a smaller ground collision size than their "unbuildable" pathing size, you prevent other buildings from being built in a larger square than the collision size.)
Why I'm asking for it:
In a lot of maps (including the one I'm tinkering with atm) where units (creep waves) continuously spawn indefinitely and attack move against another mirrored enemy creep wave, like in Dota and League of Legends for instance, if you have a lot of units or high spawn rate (Basically anything that will make surviving units accumulate as you push forward.) they'll stack up into lumps/blobs of units and block each other and, more importantly, the player Heroes...
Generally it's not that bad as long as the amount of units isn't too crazy, but if you have long range units it can still be quite a common occurrence to have units form a parabola that won't let any friendly reinforcements pass through until it's too late.
Reducing pathing size of units does help (sort of) by simply making these lumps take less space, however that isn't my ideal solution...
I want the ranged units to spread out in parabolas (when surrounding units) or straight lines when against similar size creep waves, like it does normally, but still let melee and player heroes walk past them without taking long detours.
I've tried using the "ghost visible" ability combined with "amphibious" movement type to make archers collide with each other but not other units, but having units actually walk straight through the ranged units instead of having the archers leaving some extra space between each other isn't an ideal solution in my book.
How can I make ranged units have a larger collision size towards other ranged units than to melee and player heroes to naturally leave some space between each other for other units to slip past them without taking long detours?
(Basically like how some buildings have a smaller ground collision size than their "unbuildable" pathing size, you prevent other buildings from being built in a larger square than the collision size.)
Why I'm asking for it:
In a lot of maps (including the one I'm tinkering with atm) where units (creep waves) continuously spawn indefinitely and attack move against another mirrored enemy creep wave, like in Dota and League of Legends for instance, if you have a lot of units or high spawn rate (Basically anything that will make surviving units accumulate as you push forward.) they'll stack up into lumps/blobs of units and block each other and, more importantly, the player Heroes...
Generally it's not that bad as long as the amount of units isn't too crazy, but if you have long range units it can still be quite a common occurrence to have units form a parabola that won't let any friendly reinforcements pass through until it's too late.
Reducing pathing size of units does help (sort of) by simply making these lumps take less space, however that isn't my ideal solution...
I want the ranged units to spread out in parabolas (when surrounding units) or straight lines when against similar size creep waves, like it does normally, but still let melee and player heroes walk past them without taking long detours.
I've tried using the "ghost visible" ability combined with "amphibious" movement type to make archers collide with each other but not other units, but having units actually walk straight through the ranged units instead of having the archers leaving some extra space between each other isn't an ideal solution in my book.
Last edited: