Files
DoomRTX/e3/particles/smallfiresparks.particle
T
2026-05-20 12:29:30 -07:00

38 lines
870 B
Plaintext

//
// spark particle
//
numParticles 20
material textures/sfx/flamesparks
initialVelocity ( cylinder, 0.0, -0.01, 0.55, 0.0, -0.01, 1.5, 1, 1 )
// the size is between 0.5 and 1.25
size ( 0.75, 1.75 )
trailSize 1
stayDead
//speed 1.5
begin {
// when a particle dies, it will re-start with the same base velocity
copyVelocitys
// allow up to 1 particles per iteration to appear in the defined plane
source ( 4, point, 0, 0, 0 )
targetcolor (0, 0, 0, 0, 0.1)
// what kind of gravity force is applied to them
gravity ( 0.0, 0.0, -0.35 )
// friction, resilience, cutoff, and the plane definition
bounceOff ( 0.3, 0.3, 0, world )
applyDamping (0.995, 0.995, 0.995)
killIfOlderThan 80
explode (0, 0, 0, 1, 1, 1, 0.1, 2)
killOutside ( box, -400, -400, -400, 400, 400, 400 )
// run this loop
applyMathSoFar
}