Page 1 of 1
How to replace a class model [Solved]
Posted: Sun Jan 11, 2015 3:04 am
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?
Re: How to replace a class model
Posted: Sun Jan 11, 2015 4:29 am
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).
Re: How to replace a class model
Posted: Sun Jan 11, 2015 4:51 am
by superimperial11
But what about the "all_inf_default_rifleman"? Would I not have to change that for this code to work?
Re: How to replace a class model
Posted: Sun Jan 11, 2015 6:09 am
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
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).
Re: How to replace a class model
Posted: Sun Jan 11, 2015 6:24 am
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.