ApplySelfFade
function · ui · primitive
- Address
0x482c10· 132 bytes, up to0x482c93- Meaning
- Sets the own-model flag from the fade alpha when the camera follows the active player and sets the model alpha
- Confidence
- verified, proof one
- Finding
- ui/worldpick#the-local-player-as-a-target
- Test
ui::textglue_482_bool_inv255
Finding: The local player as a target in ui: the world pick
The active player is picked only while a spell awaits a target that gives flag 0x20, and only if its model renders this frame. Without a pending spell 0x20 is never set, so 0x480638 refuses it. The model's render virtual (CGPlayer_C::OnModelUpdate, 0x5ec8f0) answers 0 for the active player when 0xc4d74c is 0, and the self fade sets that word to whether the fade alpha is nonzero when the camera follows the player.
At first person the alpha is 0, so the player has no node and is not pickable.
The derivation is in the doc.
Callers 1
- CCamera::SetTargetAlpha uicamera
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- SetShowOwnModel objectlayer
- CGObject_C::SetAlpha objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.