widget request

widget request

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

Moderator: Moderators

Post Reply
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

widget request

Post by 1v0ry_k1ng »

hey, if anyone is thinking of a widget to make, a C&C style "scatter" button would be great, like a widget that allows a key to be bound to an order for a group to move outward in a circle. it would be great for fighting crawlers etc
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

what like JKs custom formation widget?

select your units and then draw a circle with the move command and hey presto. Its an extremely useful widget
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Image
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

It's not quite the same as a 'flee in random directions!' button, though.

Good old X from C&C ;)
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

I miss the x button sorely in every RTS i ever played :(
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Its easy though, draw a circle or random line with the right mouse button.
User avatar
chillaaa
Posts: 234
Joined: 16 Mar 2005, 00:12

Post by chillaaa »

by the time you've done that the incoming BB shell for example has annihilated your troops...
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

well, how hard would it be to make a variation that just makes them scatter in a circle without having to draw it when pressing a key, like, X

also, im getting that widget. finally, i can mock an opponent with units arrayed in the advantagous L O L formation
User avatar
BigHead
Posts: 145
Joined: 12 Jul 2007, 18:55

Post by BigHead »

Good idea that isn't hard to implement. I am working on three widgets right now so don't have time. However if noone makes it by the time I am finished with my widgets I'll do it.
Scram80
Posts: 16
Joined: 02 Jun 2007, 22:17

Post by Scram80 »

you can get something like that with present widgets...

F11 - enable CircleFormation LuaUI

/bind x luaui circle

select units and press x

. The only problem is that the units simply form a circle ensuring all of them are placed - and won't move wider out. But its a start at least (you could tweak the circle LuaUI to alter the radius e.g.)
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Hmm...

How about taking the average center of the group of units you have selected (to get the direction they are supposed to move along, center -> unit's center) and have them move by a random or fixed offset in relation to the indivdual position. If the averaged distance between the group's center and the individual positions is greater than a fixed value they only scatter in random directions.

So your units would expand first and then scatter.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

If your units are so clumped together that they have that problem and get pwnt by bertha shells then your doing it wrong.

Almost every single move order I give involving multiple units is now a custom formation order.its not hard to drag the mouse in a long line near your forces clump. At most its a second or two and you already have a hand on your mouse with a finger over the right mouse button as it is.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

what? if you have a big force, and for example, the enemy sends a crawling bomb at it and you cant destroy it before its too late, a quick scatter command might save a good amount of units. if you have your units all bunched up so they are freindly firing eachother, a quick scatter will spread them out. pyros are coming in doing massive damage to bunched units, spread out etc etc i can think of infinite uses for spread out moad
Post Reply

Return to “Lua Scripts”