Area attack for ground units

Area attack for ground units

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Area attack for ground units

Post 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.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

+1
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

i think the idea was the uni would saturate an area even if out of LOS
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Yep, simply fire at a random location in the target area.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

I've wanted this for ages. It would be very handy.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

I think it's easily luable, unless artillery has been broken recently.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Can you easily detect when the weapon has fired without modifying the COB code?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post 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.)
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post 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.
Post Reply

Return to “Feature Requests”