Another model
UncleCrunch
Mayonnaise land Join Date: 2005-02-16 Member: 41365Members, Reinforced - Onos
in Modding
Hi,
If i wanted to add a another model what should I do ? (not re-skin; adding)
For example : Looking in directories i found several models of marine female.
One thing that is intriguing is the size of the files.
Questions :
1 / Are these models used in a cumulative way? Meaning NS2 loads the 100Mo model and then apply one of the other model file as a patch (depending on choice of the user).
2 / How to "register" the model in order to make the player able to select and use it ? Is NS2 scan for these player model ?
3 / Is it ok to ship the model with a map mod (like a complete pack for the map) ?
If i wanted to add a another model what should I do ? (not re-skin; adding)
For example : Looking in directories i found several models of marine female.
111 296 394 female.model 1 534 118 female_assault.model 1 557 191 female_eliteassault.model 1 460 412 female_kodiak.model 1 766 432 female_special.model 1 518 278 female_special_v1.model 1 363 851 female_v2.model
One thing that is intriguing is the size of the files.
Questions :
1 / Are these models used in a cumulative way? Meaning NS2 loads the 100Mo model and then apply one of the other model file as a patch (depending on choice of the user).
2 / How to "register" the model in order to make the player able to select and use it ? Is NS2 scan for these player model ?
3 / Is it ok to ship the model with a map mod (like a complete pack for the map) ?
Comments
Yes. The smaller model files are re-using the animation data of the first female marine model.
To do this, use the "animation_model" directive in your model_compile file. The entire line will look something like this: (w/o outer-most quotes)
"animation_model "models/path_to_model_file/base_model.model" "
Note that the target file given is a model file, not a collada file.
Also, keep in mind that this REQUIRES that when you export, the EXACT same bone-setup be used, otherwise some very bizarre things will happen. Obviously this might not be possible for some models, as not all the sources have been made public. However I believe the female marine HAS been included in your "Natural Selection 2/assets" directory.
With regards to shipping the map, all you need to do is ensure that the base-model is accessible, either through the vanilla game, or as part of your mod. Example: if you were making another female marine variant, you would NOT need to include the base model, as that base model is already included in the game.
It's already shipped with the map (and pistol re-skin too, and alienS re-skin too...). But only available if you use the default model (re-skin force it like that)
It would be nice to improve the model system so we can use / choose any custom model or skin from the personalization menu. Approved modification only of course in order to avoid "pink skulk exploit" mod.
hmmm... is it awkward to say "thanks anyway" ?
Nope, did not see that.
*takes a bow*. But seriously, in the future you can go ahead and make a new thread if it's been more than a couple of months on the others.
So, no need to rant about it.