benilla-re systems structs docs

UpdateFootprints

function · terrain · primitive

Address
0x69a3e0 · 1017 bytes, up to 0x69a7d8
Signature
void __cdecl (void)
Meaning
Fades the footprints over 6000 ms and draws them by texture
Confidence
verified, proof one
Finding
terrain/footprints#fade-and-draw
Test
terrain::footprint_fade_frac_difftest, terrain::footprint_gate_difftest, terrain::footprint_alpha_difftest, terrain::footprint_jitter_difftest, terrain::footprint_corner_ray_negate_difftest

Finding: Fade and draw in terrain: footprints

0x69a3e0 runs only while 0xc7b2a4 has bit 0x400 (the showfootprints console command, 0x6892e0). Each live record's alpha is 1 − age/6000 with the age in ms; a record below 0 is freed (its count zeroed) and one at 0 or above gets the byte min(round(alpha × 255 − 0.5), 127), so the footprint is at most half opaque. Live records are bucketed by texture and drawn blended, alpha only, below the ground by a depth bias.

The derivation is in the doc.

Callers 1

Callees 18

Calls and jumps by a bare address, from tables/calls.tsv.