SpawnSparkPercentage
The chance that a spark system throws a burst on any one frame.
Specification
- Applies to
- ParticleSystemType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- floating point
- When omitted
0.0
A fraction from 0 to 1, rolled once per frame while the system still has SparkSpawnFrames left. At 1 every frame throws a burst, and at .4 about two frames in five do, which is what makes a welding shower stutter rather than pour. Only the Spark behavior reads it.
[MySparkSys] ; a ParticleSystemType registered in [ParticleSystems]BehavesLike=SparkHoldsWhat=MySpark ; a ParticleType registered in [Particles]ParticleCap=12SparkSpawnFrames=20SpawnSparkPercentage=.4 ; roughly two frames in five throwThe roll is skipped on the system’s final spark frame, which throws unconditionally, so a system whose rolls all fail still produces that one burst before it clears away. A figure of 1 or above throws on every frame.