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

46 lines
1.1 KiB
Plaintext

//
// fire particle
//
numParticles 96
material textures/particles/smokepuff
// sphere x,y,z radius1, radius2
// initialVelocity ( sphere, 0,0,0,3,4)
initialVelocity ( cylinder, 0.01, -0.01, 0.35, 0.01, -0.01, 8, 3, 3 )
// the size is between 0.5 and 1.25
size ( 18, 26 )
randomColor ( 1.0, line, 1.5, 1.0, 0.2, 2.0, 0.8, 0.2 )
angle ( 0, 359 )
rotationSpeed ( -2, 2 )
livefor 3.0
staydead
//speed 2
begin {
// when a particle dies, it will re-start with the same base velocity
copyVelocitys
// target color rgba, scale to get there
targetColor ( 0.0, 0.0, 0.0, 0.0, 0.05 )
targetSize ( 40, 0.05 )
// allow up to 150 particles per iteration to appear in the defined plane
source ( 32, plane, -10, -10, 0, 10, 0, 0, 0, 10, 0 )
// what kind of gravity force is applied to them
gravity ( 0.0, 0.0, 0.2 )
// if they slow down more than this, then off with their heads
//killWhenSpeedIsSlowerThan 1.2
//killifolderthan 200
killUnseen
applyDamping (0.9, 0.9, 0.7)
bounceOff ( -0.01, 0.35, 0.1, world )
// run this loop
applyMathSoFar
}