benilla-re systems structs docs

CParticleEmitter2::DrawModelParticles

function · models · primitive

Address
0x7b4840 · 760 bytes, up to 0x7b4b37
Meaning
Places every model particle's model, in depth order when the emitter sorts
Confidence
inferred
Finding
models/particles#update
Test
models::depth_dot_drawall_difftest

Finding: Update in models: particles

Update(dt, matrix, camera, frame) stores the distance from the emitter's position to the camera in a global for the spawn rate, keeps the last position, sets the frame of the emitter and its children, and with |dt| < 2.384186e-7 only sets its flag 0x80. With flag 0x40000 it derives its displacement this frame scaled by clamp(|d|/dt · a + b, 0, 1). With flag 0x400 it accumulates time and, past 1/30 s, derives a velocity from its motion. It then advances, and places model particles.

The derivation is in the doc.

Callers 1

Callees 5

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