Scatter-movement?

Scatter-movement?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Scatter-movement?

Post by Pxtl »

One thing I've always been frustrated by is how hard it is to get troops to spread out. Given how many weapons wield area-effect weapons, keeping a compact formation is suicidal - and yet, there's no convenient way to say "spread out". Even line-move seems to pack the units together, just in a line.

Is there any Lua widget or movement command to say "move to a random point within the target circle" or something similar? I suggest random, because it would also be useful for factories too, and factories don't really support formations like the "line" move (since, after all, units come out of a factory one-at-a-time, and you can't have a formation of one).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

JKs line formation widget should do this. Rather than dragging a line, you draw one, so you could draw a squiggle formation, or an arc or a circle, or an arrowhead, the only limit is the RSI you get from none stop playing.
User avatar
kiki
Posts: 859
Joined: 05 Nov 2007, 03:06

Post by kiki »

I was thinking of putting a scatter command in my mod...
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post by Pxtl »

AF wrote:JKs line formation widget should do this. Rather than dragging a line, you draw one, so you could draw a squiggle formation, or an arc or a circle, or an arrowhead, the only limit is the RSI you get from none stop playing.
Link? Does it work for factories? Do the units evenly spread along the line? Or clump in the middle, like a line-move?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

they evenly spread out

look in the lua forum/ask JK
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Post by CarRepairer »

Pxtl wrote:
AF wrote:JKs line formation widget should do this. Rather than dragging a line, you draw one, so you could draw a squiggle formation, or an arc or a circle, or an arrowhead, the only limit is the RSI you get from none stop playing.
Link? Does it work for factories? Do the units evenly spread along the line? Or clump in the middle, like a line-move?
I believe it doesn't work for factories, as I have tried. Probably due to what you said about how factories only build one at a time. Your random scatter to a circular area idea would be great for factories. But otherwise yeah, use it to draw a random squiggle in an area and your units will be nice and scattered.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

You can make units make a circle using lua, e.g. "bind ctrl+shift+c luaui circle" in uikeys.txt. I agree that a hardcoded scatter command would be nice though.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Why, a Lua command works good enough, no?
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post by Pxtl »

I notice that all permutations of ctrl + alt + move + drag result in the same "line move" functionality. Is Lua flexible enough to insert a command at "alt + move + drag"or somesuch trickery?
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Pxtl wrote:I notice that all permutations of ctrl + alt + move + drag result in the same "line move" functionality. Is Lua flexible enough to insert a command at "alt + move + drag"or somesuch trickery?
Yea, Lua can add custom binds to key combinations to do exactly that.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

For spreading with jK's custom formations widget, i find a zigzag works best.
User avatar
Complicated
Posts: 369
Joined: 06 Jun 2007, 18:51

Post by Complicated »

Saktoth wrote:For spreading with jK's custom formations widget, i find a zigzag works best.
Or S shape formation.

It pooned your base twice on the same map, back to back games :D (I was at the otherside of the map both times (diagonally opposite 4v4 on comet)

;] I can't get over that...
Post Reply

Return to “General Discussion”