Add a body or a skin tone¶
A survivor's look is a body and a skin tone, chosen at character creation. There are no hairstyles or beards, and the bodies are the Unreal Engine mannequins as they ship.
Both lists are in Content/ZombieSurvival/DataAssets/Characters/Childs/DA_AppearanceOptions_Default.
A look holds two values, saved with the character and seen the same way on every machine:
Morphology, the key of the body, and SkinIndex, the rank of the tone in SkinTones.
A skin tone¶
Open DA_AppearanceOptions_Default, add a colour to SkinTones and save. The skin material takes
it as SkinTone, on both material slots of the body.
A body¶
The tutorial Replace the characters adds a third body this way, with every detail.
- Make the skeletal mesh on
Meshes/Characters/SKEL_Mannequin, the skeleton of every character, so that the animation sets play on it. Give it the sockets of the shipped bodies. - Paint the
Zonevertex colour on it, as on the shipped bodies: the zone in red, and the sub-zone number divided by 8 in green. - In
DA_AppearanceOptions_Default, add a row toMorphologies: a key for the skeletal mesh and its physics asset. - Add an entry
Creation.<key>toContent/ZombieSurvival/Localization/ST_Menus, for the name the creation screen shows.Creation.Malereads Manny. - Give every piece of clothing a mesh under the same key, in
Meshesof its clothing definition.
The shipped keys are Male and Female, for SK_Character_Male and SK_Character_Female in
Meshes/Characters/Body/.
The appearance options¶
| Field | What it does |
|---|---|
Morphologies |
Each body: a key for a skeletal mesh and its physics asset. The key is what saves and the network carry. Male and Female ship. |
SkinTones |
A list of colours that the skin material takes as SkinTone. |
DefaultAppearances |
The looks of survivors who never chose one, given by order of arrival. |
Outfits |
The outfits offered at creation. |
A saved or received look whose body key is unknown, or whose tone is out of range, becomes the first default appearance. It is never refused.
Test it¶
- Open
Content/ZombieSurvival/Maps/L_Bootand press Play. - Choose NEW GAME, then START. Character creation opens on the look page.
- Step through the body and the skin tone. The preview shows your body or your tone. Drag it with the mouse to see it from every side.
- Press PLAY and check the survivor in the world. In co-op, a client sees the same look.
If it does not work¶
- Nothing is hidden under the clothes and the skin shows no blood: the body has no
Zoneattribute. - On the new body, a piece of clothing shows the mesh of the first key: it has no mesh under the new key.