CGUnit_C::SetSheatheState
function · objectlayer · primitive
- Address
0x611cf0· 276 bytes, up to0x611e03- Meaning
- Changes the sheathe state +0xd40, at once or animated; sends 0x1e0 for the active player
- 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 13
- CGPlayer_C::OnVisibleItemChanged objectlayer
- CGPlayer_C::ToggleSheathe objectlayer
- CGPlayer_C::StartMeleeAttack objectlayer
- CGPlayer_C::SendTextEmote objectlayer
- CGUnit_C::OnAnimationDone objectlayer
- CGUnit_C::UpdateSheatheForAnimation objectlayer
- CGUnit_C::OnSheathFieldChanged objectlayer
- CGUnit_C::OnChannelObjectChanged objectlayer
- PlayUnitSpellVisualKit objectlayer
- CGUnit_C::OnStandStateChanged objectlayer
- HandleUnitCombatMessage objectlayer
- SendCast spell
- HandleSpellStart spell
Callees 5
- CDataStore::PutUInt32 base
- ClientServices::Send net
- IsActivePlayerUnit objectlayer
- CGUnit_C::ApplySheatheChange objectlayer
- CGUnit_C::AnimateSheatheChange objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.