How to avoid units clumping up in groups?

How to avoid units clumping up in groups?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

How to avoid units clumping up in groups?

Post by Erik »

When i use groups of units they block each others line of attack, while that is somewhat realistic it leads to units blocking each other a lot and closing to the enemy until its sth. like a melee battle with units standing right next to the enemy (Avoidable with a lot of micro but still annoying).
My solution would be to prevent allied units from blocking the attack
line or making units shoot over allied units. buildings should remain a block in general.
Is that possible somehow?
User avatar
Red XIII
Posts: 9
Joined: 20 Sep 2009, 17:09

Re: How to avoid units clumping up in groups?

Post by Red XIII »

There is a luawidget called custom formations. That just MIGHT be what you're looking for...

http://springrts.com/phpbb/viewtopic.php?f=23&t=18523
http://spring.jobjol.nl/show_file.php?id=1680

oh, and by default in Spring you can also have your units 'Hold Position', that way you can place artillery behind closer ranged units, etc.

EDIT: That file seems to be missing off of Springfiles. Try using the Spring downloader instead...
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: How to avoid units clumping up in groups?

Post by Gota »

You can use ctrl+move order...
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

Re: How to avoid units clumping up in groups?

Post by Master-Athmos »

Code: Select all

	avoidfriendly=0;
	collidefriendly=0;
Makes your weapons fire through friendly units...
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Re: How to avoid units clumping up in groups?

Post by Saktoth »

Its not that guys, this is a mod side issue.

Your problem is caused by your hitsphere being larger than your footprint. Units will avoid stepping on eachothers footprints, but if the hitsphere is larger, they will not be able to fire their weapons while being blocked by allies hitspheres. They will move forward (moving forward is default behaviour when you cant fire), bump into their allies, displace them, and it all becomes a big old scrum.

To see what im talking about, give a unit 10x10 footprint and give a unit with a big hitsphere a 0.5x0.5 footprint. You will see the difference immediately. The 10x10 units cant even get close to eachother, while the 0.5x0.5 units will happily stack up on the same spot.

If you use selectioncircle, disable it at least for testing, so you can compare footprint size to hitsphere.
User avatar
Red XIII
Posts: 9
Joined: 20 Sep 2009, 17:09

Re: How to avoid units clumping up in groups?

Post by Red XIII »

Great point.

I wonder what mod he's using anyway..
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

Re: How to avoid units clumping up in groups?

Post by Erik »

thx, i got it working.
I'm working on my own mod btw.
Post Reply

Return to “Game Development”