benilla-re systems structs docs

CreateLooseItemModel

function · charactermodel · orchestration

Address
0x479f40 · 294 bytes, up to 0x47a065
Signature
void * __fastcall (void *model, void *record, uint32_t kind)
Meaning
Makes a model for an ammo or weapon record, binds its texture and returns it
Confidence
verified, proof one
Finding
charactermodel/equipment#item-models
Test
charactermodel::cm_fanout_c_weapon_attach_table

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 2

Callees 10

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