Page 1 of 1

Using the same skin on different units

Posted: Fri Jan 19, 2007 4:38 pm
by EGG_GUTS
How would you for example a tatooine or mygeeto map all the skins have to
be Marines and Sandtroopers. So how would you do it?

thanks :)

RE: Using th same skin on diffrent units

Posted: Fri Jan 19, 2007 5:04 pm
by SymbolS
It would be easiest to just make another of what u want, and then give them that gun

Posted: Fri Jan 19, 2007 5:28 pm
by Gogie
you just place the units inside the map, creat diffrent odf and .req files for them, and in the odf put the Class parent as the class you want it to be.

Example:

If I wanted to have and a jungle rifleman skin as a sniper I would go into the odf. you would edit the ClassParent to be a sniper, then add the unit's "all_inf_rifleman_jungle" file into the .lua file.
[GameObjectClass]
ClassParent = "all_inf_default_sniper"

[Properties]
GeometryName = "all_inf_soldier"
GeometryLowRes = "all_inf_soldier_low1"
OverrideTexture = "all_inf_soldierjungle"
FirstPerson = "all\alltroop;all_1st_trooper"
ReadDataFile("dc:SIDE\\xxx.lvl",
"all_inf_rifleman_jungle",
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_rifleman_jungle",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},

Posted: Fri Jan 19, 2007 6:06 pm
by Karnage
You could do any of the above, or you could copy the units msh file, rename it, then hex-edit the units .tga file name in the msh.

When you hex-edit the units .tga name, the new name of the .tga has to have the same amount of characters as the default .tga file. (I.E.: all_inf_rifleman.tga - bob_inf_rifleman.tga - they each have 16 characters).

Doing this, you would have to copy the unit's .odf, .msh, low1.msh, and texture files; .tga and rename them.
  • bob_inf_rifleman.odf
  • bob_inf_rifleman.msh
  • bob_inf_rifleman_low1.msh
  • bob_inf_rifleman.tga
You would also have to list your new renamed units in your map's .lua file.

I believe i've covered everything.

Posted: Fri Jan 19, 2007 7:16 pm
by phazon_elite
Funny how this works for me on units, but not on weapons.
I think you missed one little thing: if the new name for the texture is shorter, then fill the gap with spaces.

- EP-000782

Posted: Fri Jan 19, 2007 8:11 pm
by Maveritchell
@ Karnage & phazon:

Don't confuse the man. He didn't ask how to have a map with two of the same model, each with a different texture. He asked how to have multiple units using the same model and texture. For example, having a Galactic Marine (rep_inf_ep3_commander) as both his rifleman and his rocketeer.

And all you have to do to do that is to edit the .odfs of your rocketeer to call for "rep_inf_clonecommander" instead of "rep_inf_ep3heavytrooper" wherever it mentions geometry. Much more simple than hex-editing to use different skins on the same model.

Posted: Sat Jan 20, 2007 7:31 am
by EGG_GUTS
Yes thank you marvel I'lll try that and post back

Posted: Sat Jan 20, 2007 10:05 am
by Dragon93
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
Look Here.
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
- Dragon93

Posted: Sat Jan 20, 2007 11:34 am
by Karnage
EGG_GUTS wrote:Yes thank you marvel I'lll try that and post back
Make that Maver and you'll be on the right track. :P