CGUnit_C::ComputeSelectionRadius
function · objectlayer · primitive
- Address
0x60aee0· 207 bytes, up to0x60afae- Meaning
- Sets +0xcf0 from a model's animation 0 or model bounds, 1.2 when flat
- Confidence
- verified, proof one
- Finding
- objectlayer/unitdisplay#selection-circle-and-colour
- Test
objectlayer::camera_model_scale_difftest
Finding: Selection circle and colour in objectlayer: unit display
0x608e00 (slot 12) draws the selection circle at the unit's feet: radius +0xcf0 times the
object scale, the colour from slot 11, half alpha. 0x60aee0 sets the radius from the model's
bounds. 0x605960 (slot 11) picks the colour: the flashing target colour; for player-controlled
units by attack, PvP and party; for others grey when dead, else by reaction toward the player.
The derivation is in the doc.
Callers 2
- CGUnit_C::Dismount objectlayer
- CGUnit_C::OnModelLoaded objectlayer
Callees 5
- SplatVector3 loadingscreen
- 0x4b1df0 ui
- CM2Model::HasAnimation models
- CM2Model::GetSequenceInfo models
- CM2Model::GetBoundingBox models
Calls and jumps by a bare address, from tables/calls.tsv.