[HELP] Hard to explain for a heading...

Started by Shazam, June 01, 2012, 06:34:27 AM

Previous topic - Next topic
June 01, 2012, 06:34:27 AM Last Edit: June 01, 2012, 06:35:58 AM by ¦⊗¦=·»✫Şђã·Żäм✫«=¦⊗¦
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)

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"
Beauty is, the way to perfection.

Glory to Ukraine!  :mf:

So... I can change 10, to say, 5 and only 5 soldier class will spawn at any given time?  ???

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%

Beauty is, the way to perfection.

Glory to Ukraine!  :mf: