Opened 9 years ago

Last modified 3 years ago

#3442 new enhancement

Prioritize some units when moving to a target — at Version 4

Reported by: ffm Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords: Pathfinding
Cc: Patch:

Description (last modified by elexis)

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 (4)

comment:1 by ffm, 9 years ago

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.

comment:2 by Stan, 9 years ago

This is actually a todo line 979 of CcmoUnitMotion.cpp

// TODO: if the target has UnitMotion and is higher priority,
// we should wait a little bit.

Last edited 9 years ago by Stan (previous) (diff)

comment:3 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

comment:4 by elexis, 5 years ago

Description: modified (diff)

Phab:D1490 for unit pushing.

Note: See TracTickets for help on using tickets.