Request: Multi-minelayer gadget

Request: Multi-minelayer gadget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Request: Multi-minelayer gadget

Post by Caydr »

In Sins of a Solar Empire they recently added mines. Rather than deploying one at a time, which would be positively retarded in a game of that scale, they deploy in randomized groups. You say, "deploy mines HERE" and it spawns 10 or so of them in a random fashion in that general vicinity.

I want something similar for AA. When you ask for mines to be built, you specify a location, and in a radius around that location a series of build orders are queued up for the type of mine you requested, in a random fashion.

If possible this would only happen when a key is held down, shift for example. When you're holding down shift you're probably laying a minefield rather than one mine. Err... Well maybe CTRL. I don't know, it should be clearly defined somewhere in the widget code. If this isn't possible, it's ok, I will make separate build entries for a single mine and a group.

The radius in which the random build is done should be easily adjustable, as should the number of random build orders. The construction should be done in a sensible order of possible, from one side of the group to the other, starting with whatever's closest to the builder, not just randomly. There should be a minimum X+Y distance between mines so that pathfinding is still possible for the minelayer.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Request: Multi-minelayer gadget

Post by imbaczek »

borrow from s44.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Request: Multi-minelayer gadget

Post by REVENGE »

imbaczek wrote:steal, jack, cap a bitch from s44.
Post Reply

Return to “Lua Scripts”