SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Shazam on June 01, 2012, 06:34:27 AM

Title: [HELP] Hard to explain for a heading...
Post by: Shazam on June 01, 2012, 06:34:27 AM
I have noticed that on many Star Wars Battlefront maps there are always (approximately) 2/3 of the infantry that is the soldier/rifle class. Is there a way to change that? I would like to know if it's in mission or the map files.

Also, if that is possible to change, can you exclude the AI's from spawning as a certain class? Or maybe even just allowing them to spawn as one class without a mod preventing the host and players from spawning as whomever they choose?

I am not that experienced at modding, basically I need to know where to change it and how. Thanks!

(By the way, you Administrators or Moderators can change the topic name)
Title: Re: [HELP] Hard to explain for a heading...
Post by: Sereja on June 01, 2012, 07:02:26 AM
The count of the unit class, you can change in mission LUA, in this lines:
AddUnitClass(ALL, "all_inf_soldierdesert",10)
10 - is the count of unit. You can give them any weapon, but AI behavior with enviroment, you can change in soldier .odf lines:
UnitType      = "Trooper"
Title: Re: [HELP] Hard to explain for a heading...
Post by: Shazam on June 01, 2012, 07:21:26 AM
So... I can change 10, to say, 5 and only 5 soldier class will spawn at any given time?  ???
Title: Re: [HELP] Hard to explain for a heading...
Post by: Sereja on June 01, 2012, 08:30:29 AM
Well, not exactly. The real count of team per spawn in this Mission LUA line:
SetUnitCount(ATT, 20)
SetReinforcementCount(ATT, 200)
20 - possible count per spawn,
200 - overall reinforsment count.
So, 10 or 5 it is most like percent or quote of real count (20).

For example, you have:

AddUnitClass(ALL, "all_inf_soldierdesert",10) = 58%
AddUnitClass(ALL, "all_inf_vanguard",1) = 5.8%
AddUnitClass(ALL, "all_inf_pilot2",3) = 17.4%
AddUnitClass(ALL, "all_inf_marksman",2) = 11.6%
AddUnitClass(ALL, "all_inf_smuggler",1) = 5.8%

So 17 =100%

Title: Re: [HELP] Hard to explain for a heading...
Post by: Shazam on June 01, 2012, 08:59:43 AM
Ok, I think I understand.

Thanks!
EhPortal 1.34 © 2024, WebDev