CGPlayer_C::ToggleSheathe
function · objectlayer · primitive
- Address
0x5eb480· 582 bytes, up to0x5eb6c5- Meaning
- Cycles the sheathe state between unarmed, melee and ranged when the player and model allow
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#sheathing
Finding: Sheathing in objectlayer: player spells and combat
0x5eb480 toggles the sheathe state for the active player unless busy, mounted,
under UNIT_FIELD_FLAGS 0x40000, dead,
attacking, casting, in a blocking animation, or with a model lacking or playing the sheathe
animations. From 0 it draws melee weapons (1) or else the ranged one (2), and stops the melee
attack; from 1 it goes to 2 with a ranged weapon, else 0; from 2 to 0. A class whose ChrClasses
+0x40 is set ignores the ranged weapon.
The derivation is in the doc.
Callers 1
Callees 11
- ClntObjMgrGetActivePlayer objectlayer
- ReadGuidAt objectlayer
- IsSheatheBlockedByAnimation objectlayer
- CGPlayer_C::StopMeleeAttack objectlayer
- CGUnit_C::IsClientControlled objectlayer
- CGUnit_C::GetCurrentAnimation objectlayer
- CGUnit_C::HasAttackTarget objectlayer
- CGUnit_C::SetSheatheState objectlayer
- CM2Model::IsLoaded models
- CM2Model::HasAnimation models
- CM2Model::GetKeyBoneAnimId models
Calls and jumps by a bare address, from tables/calls.tsv.