Jump to content


Photo

Horde Sizes


  • Please log in to reply
5 replies to this topic

#1 pf7612

pf7612
  • Project Team
  • 148 posts
  • Projects:Mapping for WotE and AoM, spreading general ideas all around
  •  Mapper, ini coder

Posted 22 January 2008 - 05:59 PM

Hi.

Just a quick question, I just want to know how to make more units appear in a horde.
Ex. if I wanted to have 15 horsemen in a battalion instead of 10.

Thanks in advance.
War-young men dying, old men talking.

"This ought to be the greatest gatherin' of pirate lords in our lifetime."
"And I owe them all money." - Hector Barbosa and Jack Sparrow

#2 Rob38

Rob38

    Believer of Hope

  • Hosted
  • 3,567 posts
  • Location:USA
  • Projects:Helm's Deep Last Hope
  •  One who is not afraid of new challenges

Posted 23 January 2008 - 02:06 AM

In a horde object such as GondorFighterHorde, you should see a behavior like this:

Behavior = HordeContain ModuleTag_HordeContain
		FrontAngle = 270
		FlankedDelay = 2000
		ObjectStatusOfContained = 
		InitialPayload = GondorFighter GOOD_MEN_GIANT_HORDE_SIZE
		Slots = 15
		PassengerFilter	= NONE +INFANTRY
		ShowPips = No
		ThisFormationIsTheMainFormation = Yes	//Used to determine which armorset to use (and anything else we want!)
		RandomOffset=X:0 Y:0
		MeleeBehavior = Amoeba
		End

		// Banner Carrier info		
		BannerCarriersAllowed	= GondorInfantryBanner										// types of units that are allowed as banner carriers
		BannerCarrierPosition	= UnitType:GondorFighter	Pos:X:70.0 Y:0.0		// (DEFAULT) position of banner carrier
		
		RankInfo = RankNumber:1 UnitType:GondorFighter Position:X:50 Y:0			Position:X:50 Y:20				Position:X:50 Y:-20				Position:X:50 Y:40				Position:X:50 Y:-40 
		RankInfo = RankNumber:2 UnitType:GondorFighter Position:X:30 Y:0 Leader 1 0	Position:X:30 Y:20 Leader 1 1	Position:X:30 Y:-20 Leader 1 2	Position:X:30 Y:40 Leader 1 3	Position:X:30 Y:-40 Leader 1 4
		RankInfo = RankNumber:3 UnitType:GondorFighter Position:X:10 Y:0 Leader 2 0	Position:X:10 Y:20 Leader 2 1	Position:X:10 Y:-20 Leader 2 2	Position:X:10 Y:40 Leader 2 3	Position:X:10 Y:-40 Leader 2 4
		
		RanksToReleaseWhenAttacking = 1 

		AlternateFormation = GondorFighterHordeBlock
		MeleeAttackLeashDistance = 1   //How far the hordes	can	move from the center of	the	horde when melee attacking.				  
		BackUpMinDelayTime		 = 1	//The minimum amount of	time to	delay before backing up
		BackUpMaxDelayTime		 = 3000	//The maximum amount of	time to	delay before backing up
		BackUpMinDistance		 = 1	//The minimum number of	cells to backup
		BackUpMaxDistance		 = 3	//The maximum number of	cells to backup
		BackupPercentage		 = 80%	//The amount of	chance that	a unit will	back up.
	End
Edit the rank info to your preference and change the InitialPayload and slots to the appropriate number in the horde.

Edited by Rob38, 23 January 2008 - 02:07 AM.

signature_group1.gif

 

16821.png


#3 Smartdude1301

Smartdude1301

    title available

  • Members
  • 367 posts
  • Location:Louisiana
  • Projects:WarsOfEast,Rise Of The Hobbits
  •  Leader Of Bfme2 Redone 1.7 Mod,Wars Of The East Advertiser, ,&:Ini Coder, Mapper,

Posted 23 January 2008 - 02:55 AM

Thx Rob I was Wondering How To Do This To
Posted Image
Posted Image
Posted Image

Visit My New bfme forum :)


Here

#4 pf7612

pf7612
  • Project Team
  • 148 posts
  • Projects:Mapping for WotE and AoM, spreading general ideas all around
  •  Mapper, ini coder

Posted 25 January 2008 - 02:09 AM

Rob38,
I did that and the 2 numbers were the same but (i changed it from 5 units to 15) 10 units were not connected to the moveable horde of 5 units. As in: 10 guys were standing around by the building and if I clicked on any one of them, it selected the 5 moveable units, wherever they were.
What did I do wrong?
War-young men dying, old men talking.

"This ought to be the greatest gatherin' of pirate lords in our lifetime."
"And I owe them all money." - Hector Barbosa and Jack Sparrow

#5 Sûlherokhh

Sûlherokhh

    Sagacious Engineer

  • Project Team
  • 3,754 posts
  • Location:Central Germany
  • Projects:S.E.E., Sage A.I., Code Advisor
  •  'Axe'er of the Gordic Knot

Posted 25 January 2008 - 03:41 AM

You forgot the rankinfo. There needs to be one position for every soldier.
This is for 15:
RankInfo = RankNumber:1 UnitType:GondorFighter Position:X:50 Y:0 Position:X:50 Y:20 Position:X:50 Y:-20 Position:X:50 Y:40 Position:X:50 Y:-40
  RankInfo = RankNumber:2 UnitType:GondorFighter Position:X:30 Y:0 Leader 1 0 Position:X:30 Y:20 Leader 1 1 Position:X:30 Y:-20 Leader 1 2	Position:X:30 Y:40 Leader 1 3 Position:X:30 Y:-40 Leader 1 4
  RankInfo = RankNumber:3 UnitType:GondorFighter Position:X:10 Y:0 Leader 2 0 Position:X:10 Y:20 Leader 2 1 Position:X:10 Y:-20 Leader 2 2 Position:X:10 Y:40 Leader 2 3 Position:X:10 Y:-40 Leader 2 4

This is for 5:
RankInfo = RankNumber:1 UnitType:GondorFighter Position:X:50 Y:0 Position:X:50 Y:20 Position:X:50 Y:-20 Position:X:50 Y:40 Position:X:50 Y:-40

The RankInfo determines where the soldiers are positioned in the horde. When using formations like shieldwall, porcupine etc. this is the way to make a new setup. Compare with hordes that can change formation.

Every soldier needs a position or he will just stand around!


Edit: Here is the positions above on a graph: ...
Bild.JPG

You might also want to check out this tutorial, although it's for combo hordes and the SplitHorde seems only to work for BfME1.
ComboHorde-Tutorial by GtO

Edited by Sûlherokhh, 25 January 2008 - 03:59 AM.

bannerreal01mittelit3.jpg
Axed Head and A.I. Coder for S.E.E. and ... stuff

".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."


#6 pf7612

pf7612
  • Project Team
  • 148 posts
  • Projects:Mapping for WotE and AoM, spreading general ideas all around
  •  Mapper, ini coder

Posted 26 January 2008 - 02:22 AM

Thanks a lot I got it working. :p
War-young men dying, old men talking.

"This ought to be the greatest gatherin' of pirate lords in our lifetime."
"And I owe them all money." - Hector Barbosa and Jack Sparrow




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users