warzone2100
warzone2100 copied to clipboard
Units following other units are slow to update target positions
Describe the bug When a unit is trying to follow another unit, such as an attack or repair order, the pursuing unit lags behinds their target if the target is moving around. This causes units to be slow and unreliable at tracking units on their own.
To Reproduce This can be easily replicated with a repair unit:
- Get a mobile repair unit along with any type of damaged unit (have some distance between the two).
- Order the mobile repair unit to repair the damaged unit.
- While the repair unit is moving towards the damaged unit, move the damaged unit somewhere else.
- Notice how the repair unit continues moving towards where the damaged unit was when the repair order was given. The repair unit will only update it's route once it has reached this location.
Expected behavior Units that are pursuing other units (whether friendly or hostile) should be following the target's unit position at all times, rather than going to the spot the target unit was at when the follow order was given.
Screenshots or Videos
This repair unit is ordered to repair the damaged cyborg as shown, and begins moving towards it:
The cyborg is then told to move. Rather than updating it's route, the repair unit will continue towards where the cyborg was when the repair order was given:
Only after reaching the spot where the cyborg was initially will the repair unit begin moving towards the cyborg's current position:
Your System:
- OS: Windows 7
- Game version: 3.4.1