How to replace a class model [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
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

How to replace a class model [Solved]

Post by superimperial11 »

Hi all, I was just wondering how can I replace the standard rebel soldier with a Militia Elite model I found? The model is the .option, .tga, and .msh files but there is no odf. So what would I change from the rebel riflemans odf's and how would I get it to use the other model?
Last edited by superimperial11 on Sun Jan 11, 2015 4:19 pm, edited 1 time in total.
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to replace a class model

Post by Indytotof »

Just replace this:

Code: Select all

[GameObjectClass]
ClassParent     = "all_inf_default_rifleman"

[Properties]
GeometryName    = "all_inf_soldier"
GeometryLowRes  = "all_inf_soldier_low1"
By the .msh name of the Milita Elite and it will work fine (that's how I proceed and it never failed, unless I messed up something with weapons, things that happen to me a lot).
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

Re: How to replace a class model

Post by superimperial11 »

But what about the "all_inf_default_rifleman"? Would I not have to change that for this code to work?
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to replace a class model

Post by Indytotof »

Nope, not necessary. changing code is the only thing you need to change it.

But you can always rename the .ODF file into this

Code: Select all

all_inf_militia_elite
but make sure you go to the localize tool (named "editlocalize.bat") on the "entity/all" folder and make a new key by right-clicking on the "all" thingy and tape "all_inf_militia_elite" and, on the right panel "Militia Elite".

After that, go to "_BUILD" and click on the munge tool. Make sure you checked "COMMON", "LOCALIZE" and your side folder and munge.

Have fun !

(If you don't understand this explaination, I will upload pics to help you better understand).
superimperial11
Private First Class
Posts: 82
Joined: Thu Jan 01, 2015 6:15 am
Projects :: Onfar
Games I'm Playing :: Most Star Wars games
xbox live or psn: RomanElite79
Location: The Lonely Island

Re: How to replace a class model

Post by superimperial11 »

Pics would be nice but I got it to work. I just went to the class's odf and changed OverrideTexture and the geometry to the models name. Is it the same for weapons though?

Edit: I got it now.
Post Reply