side classes [SOLVED]

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
RAymo
Command Sergeant Major
Command Sergeant Major
Posts: 250
Joined: Sat Mar 04, 2006 2:21 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

side classes [SOLVED]

Post by RAymo »

whats the maximum classes u can have for a side?

the defaults are soldier, assault, engineer, sniper, officer, special, pilot, and marine.

thats 8, but there are 9 spots in hero assault in the conversion pack.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Re: side classes

Post by Penguin »

Think the max units per team is 12 (beyond that they dissappear off screen)
Max classes is 8.
RAymo
Command Sergeant Major
Command Sergeant Major
Posts: 250
Joined: Sat Mar 04, 2006 2:21 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: side classes

Post by RAymo »

so how would i go about adding another unit?

dont u need another class to do that?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Re: side classes

Post by Penguin »

Look in the eli .luas :P
RAymo
Command Sergeant Major
Command Sergeant Major
Posts: 250
Joined: Sat Mar 04, 2006 2:21 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: side classes

Post by RAymo »

i have been looking at it, and now that i look more carefully, ive found it :P
AddUnitClass(ALL,"all_hero_leia", 1,2)
the things you don't notice when u dont look carefully LOL

thanks again penguin :D

this can be locked now btw :P
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Re: side classes [SOLVED]

Post by -_- »

I'm pretty sure it's 9 classes + 1 hero.. which is 10?
RAymo
Command Sergeant Major
Command Sergeant Major
Posts: 250
Joined: Sat Mar 04, 2006 2:21 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: side classes [SOLVED]

Post by RAymo »

its 8 classes + 1 hero from all the .luas i looked through, but if there is 9, whats the class?
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

Re: side classes [SOLVED]

Post by Teancum »

It's 10 total actually. The SWBF pack hero assault modes all have 10 on 10.
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At RCTC
Contact:

Re: side classes [SOLVED]

Post by Master Fionwë »

I found out how to add units from an lua that comes with the moddingtools. In scripts, you will find all those luas which include the conquest objective and gamemodes, all that stuff. There is one in there called setup_teams. Look through that, it explains quite clearly how to add units, and the right way to do so if you want them in order on the roster.

Here it is for those who don't wish to look for it:
function SetupTeams(sides)
-- HACKish: load the turret .odf here (this is the easiest place to put it where it will
-- be executed in every level
--ReadDataFile("SIDE\\tur.lvl", --disabled for now until we settle on where exactly the .odf will end up
-- "tur_bldg_defensegridturret")

-- list of types
local typeList = { "soldier", "pilot", "assault", "sniper", "marine", "engineer", "officer", "special" }
-- items for each team code
local teamItems = nil
if ScriptCB_IsMissionSetupSaved() then
local missionSetup = ScriptCB_LoadMissionSetup()
teamItems = missionSetup.units
end

-- for each specified side...
for name, side in pairs(sides) do
local team = side.team

-- set team properties
local name = string.lower(name)
SetTeamName(team, name)
SetTeamIcon(team, name .. "_icon", "hud_reinforcement_icon", "flag_icon")
SetUnitCount(team, side.units)
SetReinforcementCount(team, side.reinforcements)

-- add unit classes in type order
for _, type in ipairs(typeList) do
if side[type] and (not teamItems or not teamItems[name] or teamItems[name][type]) then
AddUnitClass(team, side[type][1], side[type][2], side[type][3])
end
end

-- add hero class if available
if side[hero] then
AddHeroClass(side[hero])
end
end
end
I thought that there might be some more interesting things like that hidden away there, but many of them I can't even understand the purpose of.
Post Reply