Request Groupai(simple formation)

Request Groupai(simple formation)

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Request Groupai(simple formation)

Post by NOiZE »

I would like a group ai, so a army moves @ the speed like the slowest unit.
espylaub
Posts: 205
Joined: 01 May 2006, 11:35

Post by espylaub »

This is actually pretty useful, since setting the fast units to guard the slowest one can be counterproductive. Like when your mavs are all trotting behind a mobile jammer and the jammer is the first unit to walk into the enemy's field of fire. And then it dies. And then the Mavs all stop. Just inside the enemy's firing range, and just out of theirs. Argh.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

It doesnt need an "explicit" group AI (too much hassle to deal with those things) but needs to be bound to spacebar...
alik83
Posts: 82
Joined: 08 Sep 2004, 15:32

shouldn't be hard

Post by alik83 »

this shouldn't be hard to do, in the selectedUnitsAi.cpp file you can try using setMaxSpeed function SJ has added in movetype.h not long ago for units move with ALT/CTRL/Space or whatever pressed; I wanted to test it yesterday but couldn't compile last svn version of spring. Maybe setUnitAcceleration would also be needed so units won't accelerate at different speeds.
And groupAI which will make faster units constantly wait for slower is totaly easy to implement too. In groupAI you could also make units try to move in formation(keep some limited distance between neighbour units) but that might cause problems when obstacles like canyons are on their way.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

It would also be nice if units set to guard would actually do so, rather than just hiding in the rear.
Post Reply

Return to “Feature Requests”