CMissile::Launch
function · objectlayer · primitive
- Address
0x61ceb0· 819 bytes, up to0x61d1e2- Meaning
- Launches a missile from a point: outcome flags, aim, speed fit, target reaction and flight animation
- Confidence
- verified, proof one
- Finding
- objectlayer/missiles#launch-and-flight-time
- Test
objectlayer::missile_traveltime_difftest,objectlayer::missile_traveltime_special_values_difftest
Finding: Launch and flight time in objectlayer: missiles
0x61ceb0(start) launches a missile, and relaunches a reflected one: it sets the outcome flags,
places the missile at start, moves it to the flying list, settles the target attachment and aims.
For a positive speed it then fits the speed so that the flight ends on schedule: with d the
distance and q the seconds spent in the caster's release queue, t = d/speed − q; for t > 0 the speed becomes
min(d/t, 100), otherwise 100 with t = 0. A blocked or deflected missile at a unit makes the
target play 24 ShieldBlock or 30 Dodge so that half the sequence has run at impact. The model plays
144 InFlight, its loop stretched over t, or 0 Stand.
The derivation is in the doc.
Callers 2
- CGUnit_C::ReleaseMissiles objectlayer
- CMissile::ArriveMiss objectlayer
Callees 15
- SplatVector3 loadingscreen
- __ftol crt
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- CGUnit_C::PlayAnimation objectlayer
- CMissile::Link objectlayer
- CMissile::Aim objectlayer
- CMissile::SetOutcomeFlags objectlayer
- CMissile::Advance objectlayer
- CM2Model::HasAnimation models
- CM2Model::GetSequenceInfo models
- CM2Model::PlayAnimation models
- CM2Model::HasAttachment models
- CM2Model::GetParent models
- CM2Model::Detach models
Calls and jumps by a bare address, from tables/calls.tsv.