CParticleEmitter2::SetHeadTail
function · models · primitive
- Address
0x7b4f60· 112 bytes, up to0x7b4fcf- Meaning
- Sets the head and tail flags, tail length and age cap, and the vertex and index counts per particle
- Confidence
- verified, proof one
- Finding
- models/emission#record-flags
Finding: Record flags in models: emission
| record flag | emitter effect |
|---|---|
| 0x2 | flag 0x10: particles are drawn in depth order |
| 0x10 | flag 0x100: particles stay in the emitter's space |
| 0x20 | flag 0x200: size scales by the emitter matrix's scale |
| 0x40 | flag 0x400: particles inherit the emitter's velocity |
| 0x80, 0x100 | sphere only: flags 0x800 (kill when moving away from the origin), 0x4000 (velocity along +z) |
| 0x200 | flag 0x8000: random spin and model particle signs |
| 0x400 | flag 0x10000: the tail length is capped at the particle's age |
| 0x800, 0x1000 | flags 0x1000 (spawn between the last and current position), 0x2000 (flat quads) |
| 0x2000, 0x4000 | flags 0x20000 (snap to the ground), 0x40000 (follow the emitter's motion) |
| 0x8000 | burst mode |
Material flag 1 is set when record flag 1 is clear, flag 2 when record flag 8 is clear; the blend
+0x28 maps 1 to 6 to modes 1, 2, 0, 3, 4, 5, any other value to mode 0, and flag 4 stays set only
for blend 1, 3 or another value.
The derivation is in the doc.
Callers 1
- CM2Model::InitializeLoaded models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.