CGUnit_C::AnimateSheatheChange
function · objectlayer · primitive
- Address
0x611b60· 399 bytes, up to0x611cee- Meaning
- Starts the sheathe animations from the old sheathe state toward the new one
- Confidence
- verified, proof one
- Finding
- objectlayer/unitanim#drawing-and-sheathing
Finding: Drawing and sheathing in objectlayer: unit animation
The sheathe state, 0 put away, 1 melee, 2 ranged, is +0xd40, the previous one +0xd3c.
0x611cf0(state, instant, send) changes it: three classes cannot draw a ranged weapon; the
active player sends 0x1e0 with the state. An instant change moves the models at once; otherwise sheathe
animations play on the arm bones and the model events move the models.
The derivation is in the doc.
Callers 1
- CGUnit_C::SetSheatheState objectlayer
Callees 8
- UnequipCharacterSlot charactermodel
- GetAutoMoveMode objectlayer
- CGUnit_C::StopAutoMove objectlayer
- CGUnit_C::StartMainHandSheatheAnim objectlayer
- CGUnit_C::StartOffHandSheatheAnim objectlayer
- CGUnit_C::StartBothSheatheAnims objectlayer
- CM2Model::PlayAnimation models
- CM2Model::DetachAt models
Calls and jumps by a bare address, from tables/calls.tsv.