CMissile::Advance
function · objectlayer · primitive
- Address
0x61e2a0· 1300 bytes, up to0x61e7b3- Meaning
- Moves a missile one frame toward its destination, or makes it arrive
- Confidence
- verified, proof one
- Finding
- objectlayer/missiles#flight-each-frame
- Test
objectlayer::missile_advance_difftest,objectlayer::missile_advance_special_values_difftest
Finding: Flight each frame in objectlayer: missiles
0x61ce00(dt, visible) advances a flying missile through 0x61e2a0 and fades a missed or deflected
one. A missile of speed 0 has arrived and stays put. Each frame the missile re-aims at a live target
unit unless it missed, plays the target's delayed reaction when its time comes, and moves
dt·speed toward the destination. When that step is longer than the remaining distance it arrives
instead, unless it is already an impact model. A moving missile faces its direction of travel with
its up axis in the vertical plane.
The derivation is in the doc.
Callers 2
- CMissile::OnFrame objectlayer
- CMissile::Launch objectlayer
Callees 24
- SplatVector3 loadingscreen
- OsGetAsyncTimeMs core
- SetVector3 spline
- DivideVector3 spline
- Vector3LengthSquared spline
- PlaySoundLoop3D sound
- ClntObjMgrObjectPtr objectlayer
- 0x4b1df0 ui
- 0x513a40 unassigned
- ScaleVector3 objectlayer
- CGUnit_C::PlayAnimation objectlayer
- CMissile::Aim objectlayer
- CMissile::Arrive objectlayer
- DestroyAaBox objectlayer
- CWorld::CreateLightObjectB terrain
- SyncLightNode terrain
- CM2Model::IsLoaded models
- CM2Model::GetBaseTransform models
- CM2Model::SetBaseTransform models
- CM2Model::SetAnimated models
- CM2Model::SetVisible models
- CM2Model::GetSequenceInfo models
- CM2Model::GetBoundingBox models
- Sound::SetPosition sound
Calls and jumps by a bare address, from tables/calls.tsv.