simple question - unit limit

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Dymon
Lance Corporal
Posts: 90
Joined: Thu Jan 18, 2007 7:24 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

simple question - unit limit

Post by Dymon »

Hi there...

I still don't know where (or how) to change the limit of the units, so that let's say only 3 engineers instead of 3 can be played ingame...

Could any1 pls tell me where to change?

thx
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Post by Caleb1117 »

I don't fully understand what your asking, but just about everything about numbers, limits, and reinforcements are in the lua

Code: Select all

     SetupTeams{
	all = {
	team = ALL,
	units = 26,
	reinforcements = 200,
	soldier	= { "all_inf_rifleman",9, 25},
	assault	= { "all_inf_rocketeer",1,4},
	engineer = { "all_inf_engineer",1,4},
	sniper	= { "all_inf_sniper",1,4},
	officer	= { "all_inf_officer",1,4},
	special	= { "all_inf_wookiee",1,4},


	},
	imp = {
	team = IMP,
	units = 25,
	reinforcements = 200,
	soldier    = { "imp_inf_rifleman",9, 25},
	assault   = { "imp_inf_rocketeer",1,4},
	engineer = {"imp_inf_engineer",1,4},
	sniper     = { "imp_inf_sniper",1,4},
	officer     = { "imp_inf_officer",1,4},
	special    ={ "imp_inf_dark_trooper",1,4},
		},
	}
The "units = 25," Line sets the max number of active units in play at any given time, on that side. So if I set the rebel side to "units = 60," there would be 60 rebels on the map.

The "reinforcements = 200," Line refers to reinforcements, the default is 150.

soldier = { "imp_inf_rifleman",9, 25}, Now the last part of the troop lines are diffrent, the first number sets the Minimum number of of units that will spawn as that class, so at any one moment there will be atleast 9 stormies.

Now the game fills all the minimum slots, so there are 9 stormies, 1 sniper, 1 rocketeer, ETC Then if it still has left over units it will spawn more snipers, troopers, ETC untill it reaches the 2nt number, which sets the maximum number of said unit.

So if the game has enough units to fill all the BASE numbers, It will randomly start to fill in towards the MAX number

I hope that helped.
Dymon
Lance Corporal
Posts: 90
Joined: Thu Jan 18, 2007 7:24 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dymon »

good to know, but not the information i needed :D


I wanted to know how to set up the unit limit, for example there can only be a maximum of 4 jettroopers in most shipped maps... and i want this to decrease :roll:
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

He just told you exactly how to do that. :roll:
the 2nd number, which sets the maximum number of said unit.
Read before you roll your eyes.
Dymon
Lance Corporal
Posts: 90
Joined: Thu Jan 18, 2007 7:24 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dymon »

if this would be correct there could only be 4 units per type in every shipped map! and in clanwars we're usually starting with 6++ engineers... so it can't be true...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

It is true. That lua could have been from any map, even his own, so those settings could be different. All shipped maps have those limits, so if it's something different online then it's a dedicated server change.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Like I said above, dedicated servers can change that.
Luke

Post by Luke »

OFF TOPIC: Yooooouuuu buuuummmped!!!

- :vader:
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

Luke, if you dont have anything worthy to contribute to this thread, dont post it. :evil:
YankFan1950

Post by YankFan1950 »

that is the default lua mine looks like this put in any number as long as the left number for every unit adds up to the number of units on the field:
SetupTeams{
rep = {
team = REP,
units = 128,
reinforcements = 680,
soldier = { "rep_inf_ep3_rocketeer",10, 10},
assault = { "rep_inf_ep3_engineer",25, 25},
engineer = { "rep_inf_ep3_sniper_felucia",10, 10},
sniper = { "rep_inf_ep3_officer",1, 1},
officer = {"rep_inf_ep3_marine",25, 25},
special = { "rep_inf_ep3_jettrooper",10, 10},
AddUnitClass(REP, "rep_inf_ep3_rifleman",48,48)


},
cis = {
team = CIS,
units = 128,
reinforcements = 650,
soldier = { "cis_inf_rifleman",10,10 },
assault = { "cis_inf_rocketeer",15, 15},
engineer = { "cis_inf_engineer",15, 15},
sniper = { "cis_inf_sniper",15, 15},
officer = {"cis_inf_officer",9, 9},
special = { "cis_inf_droideka",1, 4},
AddUnitClass(CIS, "cis_inf_marine",60,60)

Also add the line AddUnitClass(***, "***********",**,**) Where the first block of stars= the 3 letter side name (all caps) the second the odf unit name and the 3rd and 4th the min and max number of units
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Post by Caleb1117 »

Luke wrote:OFF TOPIC: Yooooouuuu buuuummmped!!!

- :vader:
Offtopic: He didn't bump. :? he did double post. :o

Ontopic: Yea humans arent affected by the 2nt number
YankFan1950

Post by YankFan1950 »

that is correct except with the units that cost points ie the droideka, wookiee, magnaguard, commander, jettrooper, bothan, officer, and darktrooper. Then the player is affected by the second number
Dymon
Lance Corporal
Posts: 90
Joined: Thu Jan 18, 2007 7:24 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dymon »

this screen was made in multiplayer, and i want this unit to be only available for a maximum of 2 players! You may realize that the Unit Limit is missing...

Image

that's what the lua says:

SetupTeams{

rep={
team = REP,
units = 29,
reinforcements = 150,
soldier = {"rep_inf_ep3_rifleman",10, 25},
assault = {"rep_inf_ep3_rocketeer",1, 4},
engineer = {"rep_inf_ep3_engineer",1, 4},
sniper = {"rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 2},
special = {"rep_inf_ep3_jettrooper",1, 4},


},

cis={
team = CIS,
units = 29,
reinforcements = 150,
soldier = {"cis_inf_rifleman",10, 25},
assault = {"rep_inf_female",1, 4},
engineer = {"cis_inf_engineer",1, 4},
sniper = {"tra_inf_slaver",1, 4},
officer = {"cis_inf_officer",1, 4},
special = {"cis_inf_droideka",1, 4},
}
}

The limit seems to work for the jettroopers... So I have to add points to unlock for the unit again to let the limit work? is there no way to limit em without needing points? :?
YankFan1950

Post by YankFan1950 »

yes you need to add points to unlock in order to have a limit also maybe add 1 commander without any points and let the player be the second. ( i have no idea how to limit without setting a point unlock value)
Post Reply