CreateDriftCloud
function · terrain · orchestration
- Address
0x68e5a0· 148 bytes, up to0x68e633- Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3, uint32_t arg4)- Meaning
- Constructs the 4000-particle drift cloud
- Confidence
- verified, proof one
- Finding
- terrain/liquid#drift-cloud
Finding: Drift cloud in terrain: liquid
The world builds one drift cloud, the motes in liquid, at start-up: 4000 records of 16 bytes, a camera-relative position and, at +0xc, its quad size. The scatter
places every record uniformly in a cube of edge E around the camera, z, y and x from the first,
second and third draws of the client random generator (random), and sets the size to s/2 + u·s with u from a fourth
step of the same generator, s the size base. At creation E is 30 and s 1/36. The draw sizes each quad by +0xc; drift-cloud-scatters gives
when the cloud scatters again.
The derivation is in the doc.
Callers 1
- CWorld::Initialize terrain
Callees 6
- RollDriftGust terrain
- SetDriftCloudCount terrain
- SetDriftCloudSizeBase terrain
- SetDriftCloudEdge terrain
- SetDriftCloudTexture terrain
- ScatterDriftCloud terrain
Calls and jumps by a bare address, from tables/calls.tsv.