All units with new skin have same face [Fixed]

Users who are viewing this thread

Max2150

Regular
So I added a 2 new skins into module_skins.py and also added them respectively to header_troops.py.
My 'Asian' skin works correctly and all units have random asian faces, however my 'Mideast' skin has a wider variety of choices yet every unit with it is bald with the 'mid_east1' face.

Code:
(
    "mideast_man", 0,
    "man_body", "man_calf_l", "m_handL",
    "male_head", man_face_keys,
    ["man_hair_n","man_hair_o","man_hair_p","man_hair_r","man_hair_q","man_hair_v","man_hair_t","man_hair_u","man_hair_civ","hairmessy","slickedback","shortcut","shortlayer"], #man_hair_meshes ,"man_hair_y5","man_hair_y8",
    ["beard_k","beard_l","beard_i","beard_j","beard_z","beard_m","beard_n","beard_y","beard_p","beard_o","beard_v"], #beard meshes ,"beard_q"
    ["hair_blonde", "hair_red", "hair_brunette", "hair_black", "hair_white", "hairmessy"], #hair textures
    ["beard_blonde","beard_red","beard_brunette","beard_black","beard_white"],	#beard_materials
    [
	 #("manface_african",0xff807c8a,["hair_blonde"],[0xff120808, 0xff007080c]),
	 ("manface_mideast1",0xffaeb0a6,["hair_blonde"],[0xff171313, 0xff007080c]),
	 ("manface_mideast2",0xffd0c8c1,["hair_blonde"],[0xff171313, 0xff007080c]),
	 ("manface_mideast3",0xffe0e8e8,["hair_blonde"],[0xff171313, 0xff007080c]),
     ("manface_black1",0xff87655c,["hair_blonde"],[0xff171313, 0xff007080c]),
	 ("manface_black2",0xff5a342d,["hair_blonde"],[0xff171313, 0xff007080c]),
	 ("manface_black3",0xff634d3e,["hair_blonde"],[0xff171313, 0xff007080c]),
#     ("manface_old_2",0xffd5d5c5,["hair_white"],[0xffffcded, 0xffbbcded, 0xff99eebb]),
     ], #man_face_textures,
    [(voice_die,"snd_man_die"),(voice_hit,"snd_man_hit"),(voice_grunt,"snd_man_grunt"),(voice_grunt_long,"snd_man_grunt_long"),(voice_yell,"snd_man_yell"),(voice_stun,"snd_man_stun"),(voice_victory,"snd_man_victory")], #voice sounds
    "skel_human", 1.0,
    psys_game_blood,psys_game_blood_2,
    [[1.7, comp_greater_than, (1.0,face_width), (1.0,temple_width)], #constraints: ex: 1.7 > (face_width + temple_width)
     [0.3, comp_less_than, (1.0,face_width), (1.0,temple_width)],
     [1.7, comp_greater_than, (1.0,face_width), (1.0,face_depth)],
     [0.3, comp_less_than, (1.0,eyebrow_height), (1.0,eyebrow_position)],
     [1.7, comp_greater_than, (1.0,eyebrow_height), (1.0,eyebrow_position)],
     [-0.7, comp_less_than, (1.0,nose_size), (-1.0,nose_shape)],
     [0.7, comp_greater_than, (1.0,nose_size), (-1.0,nose_shape)],
     [2.7, comp_greater_than, (1.0,chin_size), (1.0,mouth_nose_distance), (1.0,nose_height), (-1.0,face_width)],
     ]
  ),

I have also added the tf_randomize_face to the units. Any help would be appreciated :smile:

Thanks - Max


EDIT: I thing that the unit face code generator thing in module_troops.py where it said 'Sarrannid_male_etc' = 0x0000blahblah  did not contain any of those mideast faces, so it just defaulted to the first one. :razz:
 
Back
Top Bottom