s_cameraDownRayLength
global · terrain
- Address
0x80fec8· 4 bytes, up to0x80fecb- Type
float- Meaning
- Holds 1760.0, the length of the camera's down-ray in yards
- Confidence
- verified, proof one
- Finding
- terrain/camstate#camera-down-ray
Finding: Camera down-ray in terrain: camera state
0x6821f0 finds the map object that holds the camera and stores it in 0xc7b748. With world flag
0x100 set, it traces a segment from the camera 1760 yards down the z axis against the terrain
(0x69c320) and against the map objects (0x6be250), both fractions starting at 1.0. A map
object hit counts when the terrain was missed or its fraction is not larger than the terrain's;
strictly nearer terrain wins. A counted hit becomes 0xc7b748 and its model and group join the
window list.
The derivation is in the doc.