BaseHandlerCanUse
function · objectlayer · primitive
- Address
0x5f3130· 678 bytes, up to0x5f33d5- Meaning
- Decides whether the active player may use a game object now, giving the error and the use range
- Confidence
- verified, proof one
- Finding
- objectlayer/gameobjects#usable
- Test
objectlayer::go_canuse_dist2_difftest
Finding: Usable in objectlayer: game objects
The handler's slot 6 decides whether the player may use the object now and the range to use it
from, refusing with an error: a dead player; a locked-out client; for an object without a lock, a
mounted player (but at a mailbox) or a shapeshift form without the item flag; combat when the
object forbids it; an immune player at a chest or an object whose noDamageImmune column is set;
a locked object whose lock the player cannot open, with the handler's error; a destroyed object;
or distance past the range.
The derivation is in the doc.
Callers 2
- DoorHandlerCanUse objectlayer
- ChairHandlerCanUse objectlayer
Callees 10
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- IsMailboxGameObject objectlayer
- GameObjectUsableInCombat objectlayer
- GameObjectUsableWhileDamageImmune objectlayer
- CGGameObject_C::GetLockRow objectlayer
- FindGameObjectLockOpener objectlayer
- IsDeadOrGhost objectlayer
- CGUnit_C::IsShapeShifted objectlayer
- Spell_C::GetMinMaxRange spell
Calls and jumps by a bare address, from tables/calls.tsv.