View Single Post
Old 10-24-2003, 01:20 AM   #5
eidospsogos
Veteran
 
eidospsogos's Avatar
 
Join Date: Oct 2003
Posts: 906
well the way that this game loads different skins for the same model is the use of different .skin files.....if you open your assets1.pk3 file you'll notice that player models, have three skins usually....a model_default.skin, a model_red.skin, and a model_blue.skin....then they have the same images with the different parts turned red or blue named for the color for the red or blue.skin file to load.....then there are three icons one default one red and one blue to correspond with the different skins.....

for instance the model_default.skin looks like this(stormtrooper)....

hips,models/players/stormtrooper/torso_legs.tga
hips_body,models/players/stormtrooper/torso_legs.tga
l_leg,models/players/stormtrooper/torso_legs.tga
l_leg_knee,models/players/stormtrooper/torso_legs.tga
r_leg,models/players/stormtrooper/torso_legs.tga
r_leg_knee,models/players/stormtrooper/torso_legs.tga
torso,models/players/stormtrooper/torso_legs.tga
torso_armor_neck_augment,models/players/stormtrooper/torso_legs.tga
head,models/players/stormtrooper/helmet.tga
torso_pauldron,*off
l_arm,models/players/stormtrooper/torso_legs.tga
l_arm_sleeve,models/players/stormtrooper/armor.tga
l_arm_cap_torso_off,models/players/stormtrooper/caps.tga
l_hand,models/players/stormtrooper/torso_legs.tga
l_hand_plate,models/players/stormtrooper/torso_legs.tga
l_hand_cap_l_arm_off,models/players/stormtrooper/caps.tga
l_arm_cap_l_hand_off,models/players/stormtrooper/caps.tga
l_arm_shoulder,models/players/stormtrooper/torso_legs.tga
r_arm,models/players/stormtrooper/torso_legs.tga
r_arm_shoulder,models/players/stormtrooper/torso_legs.tga
r_arm_sleeve,models/players/stormtrooper/armor.tga
r_arm_cap_torso_off,models/players/stormtrooper/caps.tga
r_hand,models/players/stormtrooper/torso_legs.tga
r_hand_plate,models/players/stormtrooper/torso_legs.tga
r_hand_cap_r_arm_off,models/players/stormtrooper/caps.tga
r_arm_cap_r_hand_off,models/players/stormtrooper/caps.tga
torso_cap_hips_off,models/players/stormtrooper/caps.tga
torso_body_neck_augment,models/players/stormtrooper/torso_legs.tga
torso_cap_head_off,models/players/stormtrooper/caps.tga
torso_cap_r_arm_off,models/players/stormtrooper/caps.tga
torso_cap_l_arm_off,models/players/stormtrooper/caps.tga
torso_body,models/players/stormtrooper/torso_legs.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga

while the model_blue.skin looks like this.....

hips,models/players/stormtrooper/torso_legs_blue.tga
hips_body,models/players/stormtrooper/torso_legs_blue.tga
l_leg,models/players/stormtrooper/torso_legs_blue.tga
l_leg_knee,models/players/stormtrooper/torso_legs_blue.tga
r_leg,models/players/stormtrooper/torso_legs_blue.tga
r_leg_knee,models/players/stormtrooper/torso_legs_blue.tga
torso,models/players/stormtrooper/torso_legs_blue.tga
torso_armor_neck_augment,models/players/stormtrooper/torso_legs_blue.tga
torso_body,models/players/stormtrooper/torso_legs_blue.tga
head,models/players/stormtrooper/helmet_blue.tga
torso_pauldron,*off
l_arm,models/players/stormtrooper/torso_legs_blue.tga
l_arm_sleeve,models/players/stormtrooper/armor_blue.tga
l_arm_cap_torso_off,models/players/stormtrooper/caps.tga
l_hand,models/players/stormtrooper/torso_legs_blue.tga
l_hand_plate,models/players/stormtrooper/torso_legs_blue.tga
l_hand_cap_l_arm_off,models/players/stormtrooper/caps.tga
l_arm_cap_l_hand_off,models/players/stormtrooper/caps.tga
l_arm_shoulder,models/players/stormtrooper/torso_legs_blue.tga
r_arm,models/players/stormtrooper/torso_legs_blue.tga
r_arm_shoulder,models/players/stormtrooper/torso_legs_blue.tga
r_arm_sleeve,models/players/stormtrooper/armor_blue.tga
r_arm_cap_torso_off,models/players/stormtrooper/caps.tga
r_hand,models/players/stormtrooper/torso_legs_blue.tga
r_hand_plate,models/players/stormtrooper/torso_legs_blue.tga
r_hand_cap_r_arm_off,models/players/stormtrooper/caps.tga
r_arm_cap_r_hand_off,models/players/stormtrooper/caps.tga
torso_cap_hips_off,models/players/stormtrooper/caps.tga
torso_body_neck_augment,models/players/stormtrooper/torso_legs_blue.tga
torso_cap_head_off,models/players/stormtrooper/caps.tga
torso_cap_r_arm_off,models/players/stormtrooper/caps.tga
torso_cap_l_arm_off,models/players/stormtrooper/caps.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga

notice the only difference is to the image link, which corresponds to the color.....hope this may help in some way
eidospsogos is offline   you may: quote & reply,