Opened 9 years ago
Last modified 3 years ago
#3442 new enhancement
Prioritize some units when moving to a target
Reported by: | ffm | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Simulation | Keywords: | Pathfinding |
Cc: | Patch: |
Description (last modified by )
Units don't make way for other units. Reproduce (Example): at the beginning send all units to a point and if the cavalry is surrounded by the other units, try to send the cavalry away. It can't, because the idle units wont let it pass. Rev: 17060.
Idle units have a lower priority task as the horse. Other (more relevant) example would be: a ram trying to get on a fort, but champs are in the way. Solution would be moving the ram to the fort has a higher priority than th champ attacking the fort.
Women should move out of the way of men (no offense) with mission for fight.
And this should also affect allied team members. If you are in a team with a less skilled player, he could block your ram (without bad intention).
i propose a prioritization like: idle < just move < gather < fight < siege movement
Maybe the higher prioritized unit can push the lower one away.
Change History (5)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
This is actually a todo line 979 of CcmoUnitMotion.cpp
// TODO: if the target has UnitMotion and is higher priority,
comment:3 by , 5 years ago
Component: | UI & Simulation → Simulation |
---|
Move tickets to Simulation
as UI & Simulation
got some sub components.
Other example: guard with 40 units a ram, now try to send the ram away. so the guarded unit should have a higher priority than the guard.