benilla-re systems structs docs

AttachItemVisuals

function · charactermodel · orchestration

Address
0x479700 · 174 bytes, up to 0x4797ad
Signature
void __fastcall (void *model, int32_t visualId)
Meaning
Attaches the effect models of an item visual at attachments 0 to 4
Confidence
verified, proof one
Finding
charactermodel/equipment#item-models

Finding: Item models in charactermodel: equipment

0x4798c0(model, attach id, model path, texture path, visual id) creates a model from the path, binds the texture as replaceable type 2, and, when the visual id is positive, attaches that visual's effect models (0x479700: up to five, at attachments 0 to 4 of the item model). It detaches whatever sits at the attach id on the character model and attaches the new one. An item whose texture fails to load is not attached. Attachment ids 1 and 2 then close the right and left hand (hand grips). The cloak is a texture on the character model itself (0x479b40, type 2); shoulders are two models at attachments 6 and 5 (0x479d10) and the quiver one at 0x1a (0x479c50).

The derivation is in the doc.

Callers 3

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.