benilla-re systems structs docs

AttachItemModelFile

function · charactermodel · orchestration

Address
0x4798c0 · 219 bytes, up to 0x47999a
Signature
void __fastcall (void *model, uint32_t attachId, const char *modelPath, const char *texturePath, int32_t visualId)
Meaning
Loads an item model and texture and attaches it, closing the hand at attachments 1 and 2
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 4

Callees 11

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