Page 1 of 4
Auto Swarm
Posted: 27 Apr 2009, 15:26
by Google_Frog
http://spring.jobjol.nl/show_file.php?id=2018
A widget similar to Auto Skirm in function and structure. It does 2 things:
- Raiders will move in a zig-zag when near enemies to try and avoid their shots.
- Raiders will circle around enemy units if close enough to fire.
They only do this if they have an attack, fight or patrol command which makes it very easy to take control of them if you need to make them retreat or run through the enemies.
Let the micro vs. macro bawwing commence.
Re: Auto Swarm
Posted: 27 Apr 2009, 15:47
by Otherside
i think this is possibly a step to far

.
But CA is already micro intensive as is so any extra help is appreciated.
Aslong as micro gives a proper advantage over someone not paying attention and using widgets it should be ok

Re: Auto Swarm
Posted: 27 Apr 2009, 16:59
by ginekolog
sounds nice, ll try it.
Re: Auto Swarm
Posted: 27 Apr 2009, 17:02
by Jazcash
Who needs AI when you have widgets!?
Re: Auto Swarm
Posted: 27 Apr 2009, 18:12
by BaNa
BAAAAAAAAAAAAAAAAAAAWWWWww
whats next, a win the game widget?
this is entirely too going too far, I will make a widget that detects when other people use this so i can RAEG and selfd.
Re: Auto Swarm
Posted: 27 Apr 2009, 22:55
by Argh
Great to see somebody working on this. I'd really like to see a Gadget version.
Re: Auto Swarm
Posted: 27 Apr 2009, 23:03
by Pxtl
How does it determine if a unit is a raider?
Re: Auto Swarm
Posted: 27 Apr 2009, 23:27
by Google_Frog
Pxtl wrote:How does it determine if a unit is a raider?
There's a table of units it checks against. Currently it's setup for CA.
Great to see somebody working on this. I'd really like to see a Gadget version.
Couldn't it be converted very easily? The widget uses no allow command or command notify, no reference to player ID except when adding units. It basically just updates every 15 steps and uses units commands to decide what to do.
Re: Auto Swarm
Posted: 28 Apr 2009, 00:19
by CarRepairer
Why convert it to a gadget so that everyone's computer processes everyone else's units? A widget can be included in a mod where you lock out external widgets, can't it?
Re: Auto Swarm
Posted: 28 Apr 2009, 00:50
by Argh
A widget can be included in a mod where you lock out external widgets, can't it?
Absolutely, was just thinking that this might be something that could be modularized at some point and made a part of C.R.A.I.G. et al.
At any rate, I'll take a look this and see how it performs when tested with a lot of Units at once.
Re: Auto Swarm
Posted: 28 Apr 2009, 00:52
by lurker
How much math is this thing actually doing?
Latency on unit behaviors is bad.
Re: Auto Swarm
Posted: 28 Apr 2009, 07:50
by manolo_
i like widgets, but that and the one that auto move your com (while airtrans is coming) are really a big step to far, why not a widget for diplomats, that aim infront of an unit (so it will hit the unit while its moving), or auto dgun widget
Re: Auto Swarm
Posted: 28 Apr 2009, 08:15
by Google_Frog
lurker wrote:How much math is this thing actually doing?
Latency on unit behaviors is bad.
Spring.GetUnitNearestEnemy every 15 steps for every raider and Spring.GetUnitSeparation if they have a fight or patrol command next. Then they do a few multiplications and 2 divisions if they need to move.
I tested with 100 units and only had about 2 fps drop when they had an attack command.
Re: Auto Swarm
Posted: 28 Apr 2009, 16:01
by 1v0ry_k1ng
im going to test this tonight
how effective is it?
Re: Auto Swarm
Posted: 28 Apr 2009, 18:43
by Pendrokar
manolo_ wrote:auto dgun widget
Which d-guns hawks out of the sky!

(I so wanted to see that!)
Re: Auto Swarm
Posted: 28 Apr 2009, 19:56
by Neddie
Pendrokar wrote:manolo_ wrote:auto dgun widget
Which d-guns hawks out of the sky!

(I so wanted to see that!)
Seen it. Manually done it. Eh.
Re: Auto Swarm
Posted: 28 Apr 2009, 20:29
by reivanen
This is absolutely fantastic!
Soon we don't have to command an army of retarded zombies, but actually play a STRATEGY game, where you can focus on strategy, and not be stuck walking hand-in-hand with every unit as they move about.
Anything that cuts out useless micro is for the win!
And about the diplomat baww, this suggested behaviour would be bad exactly why? Atm the engine does the exactly same thing for normal weapons. Now how retarded would it be for units not accounting flighttime in aiming...?
Re: Auto Swarm
Posted: 28 Apr 2009, 20:35
by CarRepairer
Pendrokar wrote:manolo_ wrote:auto dgun widget
Which d-guns hawks out of the sky!

(I so wanted to see that!)
Change the mod so that dgun is a regular weapon, then use firestate button. If you want it separate from regular laser, add an on/off button that allows dgun to shoot or not shoot so that firestate doesn't affect it, only the regular laser. Slow widgets not needed.
Re: Auto Swarm
Posted: 28 Apr 2009, 21:00
by BrainDamage
Google_Frog wrote:lurker wrote:How much math is this thing actually doing?
Latency on unit behaviors is bad.
I tested with 100 units and only had about 2 fps drop when they had an attack command.
framerate is not indicative how much cpu intensive is a script
Re: Auto Swarm
Posted: 28 Apr 2009, 23:41
by Forboding Angel
Hey neato, lookin real good. Have you tried it with evo google? Since evo units shoot through each other I wonder if this is even needed. What do you think? My immediate response it to put it in the mod, but what do you think?