CGUnit_C::RefreshRangedWeaponModel
function · objectlayer · primitive
- Address
0x611e10· 468 bytes, up to0x611fe3- Meaning
- Hangs the ranged weapon at option 17 into +0xd24, gives a bow its string, refits the outfit's ranged slot
- Confidence
- verified, proof one
- Finding
- objectlayer/unitdisplay#hand-items-and-weapons
Finding: Hand items and weapons in objectlayer: unit display
A creature's hands come from UNIT_VIRTUAL_ITEM_SLOT_DISPLAY (fields 37 to 39) and
UNIT_VIRTUAL_ITEM_INFO (40 to 45). 0x605da0 hangs a slot's item model or clears it.
0x60b770 places a hand's item in the hand or its sheath by the sheathe state; 0x60b590 moves
it between them; 0x611e10 hangs the ranged weapon and a bow's string. A disarmed unit hides its
main-hand weapon. Each hand keeps a weapon trail.
The derivation is in the doc.
Callers 6
- CGUnit_C::OnSheatheEvent objectlayer
- CGUnit_C::AttachHandItem objectlayer
- CGUnit_C::ApplySheatheChange objectlayer
- CGUnit_C::StartMainHandSheatheAnim objectlayer
- CGUnit_C::StartOffHandSheatheAnim objectlayer
- CGUnit_C::StartBothSheatheAnims objectlayer
Callees 12
- UnequipCharacterSlot charactermodel
- EquipBodySlotById charactermodel
- AttachItemModel charactermodel
- GetItemDisplayId objectlayer
- IsActivePlayerUnit objectlayer
- CGUnit_C::StartAutoMoveToObject objectlayer
- FindItemByClass objectlayer
- CM2Model::AddRef models
- HandleClose2 models
- CM2Model::SetDrawCallback models
- CM2Model::FindChild models
- CM2Model::DetachAt models
Calls and jumps by a bare address, from tables/calls.tsv.