Skip to content

RWSkinPLG (0x0116)

The RWSkinPLG section describes the bones of an actor and how these react with the vertices of the model mesh. It is usually found as RWExtension child of a RWAtomic section.

Here is a discrepancy between the format described by gtamodding and the one described by kabbi. The differences are not compatible to each other, but the format by kabbi seems to work, so this is what I will using as well, even though it has some strange properties (see bone matrix).

Structure format

Size Type Description
4b uint bone count
4b uint vertex count
4x1b uint[] vertexIndices (1 set per vertex)
4x4b float[] vertexWeights (1 set per vertex)
Bone[] bones

Bone

Size Type Description
4b uint i1
4b uint idx
4b BoneFlags bone flags
12b Vector right
4b uint unused
12b Vector up
4b uint unused
12b Vector at
4b uint unused
12b Vector pos
4b uint unused

Bone flags

Flag-Bit Description
0 Is childless
1 Has another sibling
3 unknown