CGUnit_C::Update
function · objectlayer · primitive
- Address
0x607ed0· 1565 bytes, up to0x6084ec- Meaning
- Runs vtable slot 14: breath, nameplate, target flash, tints, emotes, ripples, effects, facings and spine twist
- Confidence
- verified, proof one
- Finding
- objectlayer/unitbody#the-per-frame-update
- Test
objectlayer::u4_spin_cast_byte_difftest,objectlayer::u4_turn_step_cap_difftest,objectlayer::u4_lean_smooth_difftest,objectlayer::u4_turn_delta_difftest,objectlayer::u4_turn_apply_step_difftest
Finding: The per-frame update in objectlayer: unit body each frame
Vtable slot 14 is 0x607ed0(time). It checks the breath every 10 seconds, shows or hides the
nameplate, flashes the attacked target's selection colour, applies tints and fades, runs the
object's slot 14, draws the auto-move target, plays queued emotes, leaves a water ripple, steps
the unit's effects, steers the display facing unless the camera holds it, then turns the body
and twists the spine.
The derivation is in the doc.
Callers 1
- CGPlayer_C::Update objectlayer
Callees 27
- __ftol crt
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetActiveCamera ui
- CGUnit_C::EmitWaterRipple objectlayer
- CGUnit_C::CanShuffle objectlayer
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::UpdateDisplayFacing objectlayer
- CGUnit_C::CanAttack objectlayer
- CGUnit_C::UpdateBreathState objectlayer
- WrapAngleToPi objectlayer
- CGUnit_C::UpdateEmoteQueue objectlayer
- CGUnit_C::UpdateTint objectlayer
- CGUnit_C::UpdateAlphaFade objectlayer
- CGUnit_C::HasAttackTarget objectlayer
- CGUnit_C::UpdateNamePlateVisibility objectlayer
- CGUnit_C::IsAutoMoving objectlayer
- CGUnit_C::DrawAutoMoveTarget objectlayer
- CGUnit_C::GetLootGuid objectlayer
- CGObject_C::Update objectlayer
- CEffect::Update objectlayer
- PlayerNameMarkColorDirty playername
- CM2Model::SetKeyBoneFlags models
- CM2Model::GetKeyBoneAnimId models
- CM2Model::SetKeyBoneOverride models
- BuildAxisRotation4x4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.