In my Star Wars mod we have a few alien races where the body is either bigger (wookiee, gamorrean) or smaller (jawa). We've done this by creating different sized body/head/armor models and then creatively rigging or moving the position of the item. This concept works well provided the troop is using equipment that was specifically designed for them, but if you tried to equip 'stormtrooper armor' on a jawa then the jawa head would appear in the middle of their chest..... So there are a few ways we could potentially solve this:
a) only give the correct sized equipment to these troops. This is fine for mercs and faction troops but it most likely means no playable races or companions which don't use a human sized body since you could equip items that didn't fit correctly.
b) code something where you cannot equip certain type of armor if you are a certain smaller/bigger race, etc.
c) my latest concept with using imodbits to switch the models when equipped....
1) we could potentially create multiple models for normal, bigger, smaller sized troops.
2) then, its possible to define different models depending on an items imodbit, so we could do something like this...
3) there would have to be some type of code that if the player or companion was a bigger/smaller race and equipped an item model, it would switch the imodbit to be one for that race.... So is it possible to switch an item imodbits in code or when equipped? MartinF suggested I could probably remove and re-add an item to the player/companion or their inventory, so that might be an option as well.
FYI - I'm not sure if I want to actually try and code/model this concept, but I am curious to see if it is possible. Also, it would probably mess up the existing imodbits on items so you might have to limit those or do additional coding, etc.
a) only give the correct sized equipment to these troops. This is fine for mercs and faction troops but it most likely means no playable races or companions which don't use a human sized body since you could equip items that didn't fit correctly.
b) code something where you cannot equip certain type of armor if you are a certain smaller/bigger race, etc.
c) my latest concept with using imodbits to switch the models when equipped....
1) we could potentially create multiple models for normal, bigger, smaller sized troops.
2) then, its possible to define different models depending on an items imodbit, so we could do something like this...
Code:
["imperial_stormtrooper_armor", "Imperial Stormtrooper Armor",
[
("imperial_stormtrooper_armor",0),
("imperial_stormtrooper_armor_jawa_size",imodbits_jawa),
("imperial_stormtrooper_armor_wookiee_size",imodbits_wookiee)
]
.........
3) there would have to be some type of code that if the player or companion was a bigger/smaller race and equipped an item model, it would switch the imodbit to be one for that race.... So is it possible to switch an item imodbits in code or when equipped? MartinF suggested I could probably remove and re-add an item to the player/companion or their inventory, so that might be an option as well.
FYI - I'm not sure if I want to actually try and code/model this concept, but I am curious to see if it is possible. Also, it would probably mess up the existing imodbits on items so you might have to limit those or do additional coding, etc.