Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.13k stars 519 forks source link

Let the units blocking the road automatically give way to friendly forces. #3674

Open rocket049 opened 4 months ago

rocket049 commented 4 months ago

Describe the feature you'd like Let the units blocking the road automatically give way to friendly forces.

Describe why do you think it is needed When the mortar troops are bombing the enemy in front, let the mortar trucks blocking the road automatically give way to friendly forces from the rear.

aco4 commented 4 months ago

Although this report specifically mentions mortar units, which are programmed to stand still, this issue may be considered a duplicate of #873.

And by the way, some may consider it a feature that mortar units do not give way to friendly forces. The mortar units are still because they are obeying orders to fire at a target. They shouldn't ignore that order.

Monsterovich commented 4 months ago

And by the way, some may consider it a feature that mortar units do not give way to friendly forces.

Screw that feature.

By the way, this mechanic with space clearing for friendly units is definitely needed, because there are tons of cases when units returning to repair constantly collide with new units and can't move apart, but it's much harder to fix.

mirror176 commented 3 months ago

Normally players manage unit collision issues by moving units back and forth perpendicular to the directions of the enemy/retreat. You can move at other angles but forward/backward seems the least efficient so units still interfere with units doing different tasks like retreating. That does not work at a choke point so you should use caution when passing through one and destroying walls and tank traps if they create the choke point to minimize the thread. Using hovercraft units helps them slide around much easier as long as the units aren't stopped. If you bring any repair units into the battlefield, then the direction of retreat to becomes more complicated.

Since attaching artillery to a sensor and then ordering the sensor to try to move past a blockade of attached artillery does not have them move aside I'd say it isn't just because they are standing still to fire at a target as one is not given until the sensor stops again. The area where it seems like a feature is just because artillery need to be stopped to fire and moving to let units pass would interrupt their firing type of state until they stop again.

It is common in RTS games that they have some way to get additional benefit from directly controlling the units such as in StarCraft 1&2 having a 'stutter step' where you can move units during part of the weapon cooldown timer without stopping the timer so you can get progressively into better positions than just giving a general attack order since most units there have to stop for a given short amount of time to fire and a general attack will have them stop once in range and able to shoot the target so they block units behind themself.