CGUnit_C::Tick
function · objectlayer · primitive
- Address
0x60a7f0· 807 bytes, up to0x60ab16- Meaning
- Runs a unit's frame: held missiles, done sounds, loading screen end, nameplate, bleed, drunk sway and auto-move
- Confidence
- verified, proof one
- Finding
- objectlayer/unitbody#the-unit-tick
- Test
objectlayer::u5_mount_level_fraction_difftest,objectlayer::u5_move_facing_wrap_difftest,objectlayer::u5_lean_pitch_difftest
Finding: The unit tick in objectlayer: unit body each frame
The world's per-object callback 0x482cd0 calls 0x60a7f0(time) for each unit. It releases
missiles held past 2 seconds, stops the unit's finished sounds, ends the active player's loading
screen once its transport is ready, drops the nameplate of a unit whose node is hidden, moves the
unit's sound emitter, runs the bleed timer, and, for the active mover, feeds a drunk player's
sway to the auto-move or to the facing and pitch.
The derivation is in the doc.
Callers 1
Callees 24
- IsLoadingScreenUp loadingscreen
- EndLoadingScreen loadingscreen
- MoveEmitter sound
- ClntObjMgrObjectPtr objectlayer
- GetInputControl input
- MayTurn input
- CInputControl::YawGate input
- IsActivePlayerUnit objectlayer
- CGUnit_C::ReleaseNamePlate objectlayer
- CGUnit_C::UpdateBleed objectlayer
- DrunkSway objectlayer
- ClampToHalfPi objectlayer
- CGUnit_C::ReleaseMissilesFromHand objectlayer
- CGUnit_C::SetFacing objectlayer
- CGUnit_C::SetPitch objectlayer
- CGUnit_C::IsAutoMoving objectlayer
- CGUnit_C::UpdateAutoMove objectlayer
- CWorld::IsEntityDrawn terrain
- CWorld::IsEntityLoaded terrain
- AnimateMapEntityLightThunk terrain
- CM2Model::IsLoaded models
- Sound::Stop sound
- Sound::IsPlaying sound
- Sound::IsCutOff sound
Calls and jumps by a bare address, from tables/calls.tsv.