How to replace a class model [Solved]
Moderator: Moderators
-
superimperial11
- Private First Class
- Posts: 82
- Joined: Thu Jan 01, 2015 6:15 am
- Projects :: Onfar
- xbox live or psn: RomanElite79
- Location: The Lonely Island
How to replace a class model [Solved]
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

- Posts: 348
- Joined: Fri Jun 06, 2014 6:58 am
- Projects :: SWBF2 Sides Overhaul Mod
- xbox live or psn: No gamertag set
- Location: Senlis, France
Re: How to replace a class model
Just replace this:
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).
Code: Select all
[GameObjectClass]
ClassParent = "all_inf_default_rifleman"
[Properties]
GeometryName = "all_inf_soldier"
GeometryLowRes = "all_inf_soldier_low1"-
superimperial11
- Private First Class
- Posts: 82
- Joined: Thu Jan 01, 2015 6:15 am
- Projects :: Onfar
- xbox live or psn: RomanElite79
- Location: The Lonely Island
Re: How to replace a class model
But what about the "all_inf_default_rifleman"? Would I not have to change that for this code to work?
-
Indytotof
- Chief Warrant Officer

- Posts: 348
- Joined: Fri Jun 06, 2014 6:58 am
- Projects :: SWBF2 Sides Overhaul Mod
- xbox live or psn: No gamertag set
- Location: Senlis, France
Re: How to replace a class model
Nope, not necessary. changing code is the only thing you need to change it.
But you can always rename the .ODF file into this 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).
But you can always rename the .ODF file into this
Code: Select all
all_inf_militia_eliteAfter 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
- xbox live or psn: RomanElite79
- Location: The Lonely Island
Re: How to replace a class model
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.
Edit: I got it now.
