mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
30 lines
652 B
Plaintext
30 lines
652 B
Plaintext
//
|
|
// explosion particle
|
|
//
|
|
|
|
numParticles 1000
|
|
material textures/sfx/flamesparks
|
|
initialVelocity ( sphere, 0,0,0,1,1)
|
|
// the size is between 0.5 and 1.25
|
|
size ( 2, 6 )
|
|
|
|
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 ( 50, point, 0, 0, 0 )
|
|
|
|
applyDamping (0.995, 0.995, 0.995)
|
|
|
|
// what kind of gravity force is applied to them
|
|
gravity ( 0.0, 0.0, -0.1 )
|
|
|
|
// center, velocity, magnitude, lifetime, epsilon, age
|
|
explode (0, 0, 0, 0.3, 4, 30, 0.1, 1)
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|