Page 1 of 1

Area attack for ground units

Posted: 08 Nov 2007, 11:52
by KDR_11k
Would be useful to have an area attack option for e.g. artillery so you can more effectively pound targets out of LOS, especially for counter-battery fire. I was thinking about just adding the command to arty but was told ground units cannot use the command anyway.

Posted: 08 Nov 2007, 18:00
by FLOZi
+1

Posted: 08 Nov 2007, 19:58
by AF
Actually, lua should be able to circumvent that restriction by emulating the command.

Lets say instead of giving a position and radius to a CMD_ATTACK order, we give it to a CMD_FUNKY_LUA_AREA_ATTACK_REPLACEMENT order.

Then lua will find the nearest enemy in that radius and issue a CMD_ATTACK order, then repeat the process untill there are no longer any enemies in that radius.

Posted: 08 Nov 2007, 20:05
by 1v0ry_k1ng
i think the idea was the uni would saturate an area even if out of LOS

Posted: 08 Nov 2007, 20:10
by KDR_11k
Yep, simply fire at a random location in the target area.

Posted: 08 Nov 2007, 20:41
by tombom
I've wanted this for ages. It would be very handy.

Posted: 08 Nov 2007, 20:57
by imbaczek
I think it's easily luable, unless artillery has been broken recently.

Posted: 08 Nov 2007, 21:02
by KDR_11k
Can you easily detect when the weapon has fired without modifying the COB code?

Posted: 08 Nov 2007, 21:17
by imbaczek
Don't know what 'easily' means, but at least wrt primary weapons attack ground commands finish after firing one shot if there are more commands in the queue. (At least they did when I was debugging set MAX_SPEED issue in CvC.)

Posted: 12 Nov 2007, 02:21
by Warlord Zsinj
I have yet to see lua integrated orders work well with both command queing and UI integration (for an example, see jk's commando script, which is really great when it works, but ultimately unusable because of a lack of integration with the normal command system).

I too would love to see this, but it really needs to be able to be qued just as any other order, and it needs to be able to be seen in qued order lists, and other essential UI integration.

Posted: 12 Nov 2007, 02:48
by trepan
Custom lua commands queue rendering has been improved for
the next spring release. They can use their own custom animated
icons, and can also display areas.