So basically, you want to use the same model for a different unit using a different skin.
To do this you need to edit:
descr_model_battle.txt in Data
Here is where the "soldier" in export_descr_unit.txt is declared
So say you wanted to use the barbarian crew, but with a different texture
Copy the entry here:
Code:
type barb_crew
skeleton fs_dagger
indiv_range 40
texture gauls, data/models_unit/textures/unit_barb_infantry_gaul.tga
texture britons, data/models_unit/textures/unit_barb_infantry_briton.tga
texture germans, data/models_unit/textures/unit_barb_infantry_german.tga
texture dacia, data/models_unit/textures/unit_barb_infantry_dacia.tga
texture scythia, data/models_unit/textures/unit_barb_infantry_scythia.tga
model_flexi data/models_unit/unit_barb_peasant_high.cas, 8
model_flexi data/models_unit/unit_barb_peasant_med.cas, 15
model_flexi data/models_unit/unit_barb_peasant_low.cas, 30
model_flexi data/models_unit/unit_barb_peasant_lowest.cas, max
model_sprite scythia, 60.0, data/sprites/scythia_barb_crew_sprite.spr
model_sprite dacia, 60.0, data/sprites/dacia_barb_crew_sprite.spr
model_sprite britons, 60.0, data/sprites/britons_barb_crew_sprite.spr
model_sprite germans, 60.0, data/sprites/germans_barb_crew_sprite.spr
model_sprite gauls, 60.0, data/sprites/gauls_barb_crew_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
And change it to:
Code:
type barb_crew_new
skeleton fs_dagger
indiv_range 40
texture data/models_unit/textures/my_texture.tga
model_flexi data/models_unit/unit_barb_peasant_high.cas, 8
model_flexi data/models_unit/unit_barb_peasant_med.cas, 15
model_flexi data/models_unit/unit_barb_peasant_low.cas, 30
model_flexi data/models_unit/unit_barb_peasant_lowest.cas, max
model_sprite 60.0, data/sprites/my_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
As your only going to use this model for the britons, you don't need to specify the faction before the texture and sprite.
Now use barb_crew_new for your new model.
Note: Just in case you didn't know, the sprites are like the 2D units in MTW, but they are only used for model in the distance. There is a sprite generator by CA at the top of the General forum.
On the other hand, if you want to give this unit a spear, you have to edit the model itself using 3ds max or Gmax. Then you would use:
Code:
type barb_crew_new
skeleton fs_dagger
indiv_range 40
texture data/models_unit/textures/my_texture.tga
model_flexi data/models_unit/my_model_high.cas, 8
model_flexi data/models_unit/my_model_med.cas, 15
model_flexi data/models_unit/my_model_low.cas, 30
model_flexi data/models_unit/my_model_lowest.cas, max
model_sprite 60.0, data/sprites/my_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
Bookmarks