Particle Field List
Contents
Amountification
count
Syntax: count <count>
Indicates to spawn <count> number of particles with a point effect.
step
Syntax: step <step>
Indicates to spawn a particle every <step> number of quake units for a trail or beam effect.
spawnchance
Syntax: spawnchance <chance>
Default: 1
Indicates that the effect will be applied with a probability of <chance>. So, spawnchance 0.3 means that an effect will be applied 30% of the time. This does not effect assoc'ed particle effects.
spawntime
Syntax: spawntime
Limits the particle effect to be applied only once every <time> seconds. Only really usable (and useful) with beam effects and emitters. This does not effect assoc'ed particle effects.
die
Syntax: die <time>
Sets the lifetime of the particles spawned to <time> seconds.
diesubrand
Syntax: diesubrand <time>
Expires particles on spawn a random time between 0 and <time> seconds.
Lookification
type
Syntax: type <type>
Default: normal
Changes the render type of a particle.
Values for <type>:
- normal, blob: generic textured particle
- beam: beam particle with two connected points
- spark: line particle, length changes with velocity
- sparkfan: triangular spark, size changes with velocity, similar to QMB's sparks
- texturedspark: uses a texture to create a similar spark to the other two types
- decal: wall decal (restricted in features compared to other types) EXPERIMENTAL
scale
Syntax: scale <scale> [<max>]
Sets the size of the particle as <scale>. When <max> is given, scale will be set to a random value between <scale> and <max> on particle generation.
scalerand
Syntax: scalerand <rand>
Adds a random value from 0 to <rand> to a particle's scale on generation.
scalefactor
Syntax: scalefactor <factor>
Sets the factor in which range will effect the particle scale. A <factor> of 0 means no change, and a <factor> of 1 means normal rendering size decrease due to range.
scaledelta
Syntax: scaledelta <delta>
Sets the rate of change for a particle's scale to <delta> per 1 second.
alpha
Syntax: alpha <alpha>
Default: 1
Sets the transparency for particles generated. An <alpha> of 0 is completely invisible, while an <alpha> of 1 is completely visible.
alphachange
Syntax: alphachange <change>
Default: 1
The rate of change for alpha is normally the starting alpha divided by the die time per second. This field multiplies this rate of change by <change>.
WARNING: This field will be replaced in the near future.
texture
Syntax: texture <texture>
Sets the texture as <texture> to use with certain particle types. Usable with normal, beam, textured spark, and decal particles.
rotationstart
Syntax: rotationstart <angle> [<rand>]
Default: -180 for <angle>, 360 for <rand>
Sets the angle as <angle> in which the texture will be rotated for particles of type normal. When <rand> is given, a number from 0 to <rand> will be added to the particle's angle on generation.
rotationspeed
Syntax: rotationspeed <speed> [<rand>]
Sets the rotation velocity as <speed> angles per second. If <rand> is given, a number from 0 to <rand> will be added to the particle's angle velocity on generation.
blend
Syntax: blend <blend>
Default: blend
Sets the blend mode for particle rendering.
Values for <blend>:
- blend: default alpha blending
- add: color values of the particle add to the colors previously rendered before it
- subtract: color values of the particle subtract to the colors previously rendered before it
- blendcolor, blendcolour
stains
Syntax: stains <stain>
Adds staining properties to a particle. A <stain> of 0 is no map staining, and a <stain> of 1 enables map staining.
Coloring
rgb
Syntax: rgb <red> [<green> <blue>]
Sets the initial color of effect particles.
- <red> is the red component of the RGB color
- <green> is the green component of the RGB color
- <blue> is the blue component of the RGB color
If <green> and <blue> are excluded, <red> will be used in the place of their values.
Example:
// These fields do the same thing (change the color to white) rgb 255 rgb 255 255 255
rgbrand
Syntax: rgbrand <red> [<green> <blue>]
rgbrandsync
Syntax: rgbrandsync <red> [<green> <blue>]
rgbdelta
Syntax: rgbdelta <red> [<green> <blue>]
rgbdeltatime
Syntax: rgbdeltatime <time>
colorindex
Syntax: colorindex <index> [<indexrand>]
Ramps
rampmode
Syntax: rampmode <mode>
ramp
Syntax: ramp <red> [<green> <blue> [<alpha> [<scale>]]]
rampindex
Syntax: rampindex <index> [<alpha> [<scale>]]
rampindexlist
Syntax: rampindexlist <index1> ... <indexn>
Positioning and Movement
spawnmode
Syntax: spawnmode <mode>
spawnparam#
Syntax: spawnparam1 <param> and spawnparam2 <param>
spawnorg
Syntax: spawnorg <xy> [<z>]
spawnvel
Syntax: spawnvel <xy> [<z>]
up
Syntax: up <z>
orgadd
Syntax: orgadd <offset>
veladd
Syntax: veladd <offset>
randomvel
Syntax: randomvel <xy> [<z>]
friction
Syntax: friction <x> [<y> [<z>]]
gravity
Syntax: gravity <gravity>
Emitters
emit
Syntax: emit <type>
emitstart
Syntax: emitstart <time>
emitinterval
Syntax: emitinterval <time>
emitintervalrand
Syntax: emitintervalrand <time>
Associationification
assoc
Syntax: assoc <type>
cliptype
Syntax: cliptype <type>
clipcount
Syntax: clipcount <count>
clipbounce
Syntax: clipbounce <factor>
inwater
Syntax: inwater <type>
Special flags
citracer
Syntax: citracer
perframe
Syntax: perframe
averageout
Syntax: averageout
nostate
Syntax: nostate
nospreadfirst
Syntax: nospreadfirst
nospreadlast
Syntax: nospreadlast