Skip to content

HoldsWhat

The ParticleType every particle a system creates is made from.

Specification
Applies to
ParticleSystemType
File
rules.ini
Section
[<ObjectType ID>]
Value
string
When omitted
(empty)The empty name is registered as a ParticleType of its own, so the system holds a blank particle with every built-in value. A later file that contains the section without this key puts that blank particle back.

Every particle a system emits by its behavior is of this type. So is the single particle a system receives from a warhead’s blast, an exploding barrel, a web, or a levitating vehicle’s gas puff. A veinhole monster’s gas release is the exception: it always adds a GasCloudM1 particle to the scenario’s shared gas cloud. A particle’s NextParticle decides what it turns into when it expires, so a gas cloud or a smoke column can end up holding types this key never names.

rules.ini
[MySparkSys] ; a ParticleSystemType registered in [ParticleSystems]
BehavesLike=Spark
HoldsWhat=MySpark ; a ParticleType registered in [Particles]
ParticleCap=12
SparkSpawnFrames=1
SpawnSparkPercentage=1

A name that no particle declares is registered as a new, blank particle type. A misspelled name therefore gives a system whose particles have no artwork, no damage and a life of one frame.