mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
43 lines
993 B
Plaintext
43 lines
993 B
Plaintext
//
|
|
// pistol bullet spark particle
|
|
//
|
|
|
|
numParticles 4
|
|
material textures/sfx/flamesparks
|
|
initialVelocity ( cylinder, 0.0, 0.0, 0.0, 0.0, 0.0, 1.5, 1.5, 1.5 )
|
|
// the size is between 0.5 and 1.25
|
|
size ( 1, 3 )
|
|
// trailSize 3
|
|
livefor 0.25
|
|
stayDead
|
|
randomColor ( 1, line, 1.0, 1.0, 2.0, 0.5, 0.5, 0.5 )
|
|
//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 ( 5, point, 0, 0, 0 )
|
|
targetSize (0.5, 0.09)
|
|
|
|
targetColor (0, 0, 0, 0, 0.05)
|
|
|
|
// what kind of gravity force is applied to them
|
|
gravity ( 0.0, 0.0, 0 )
|
|
|
|
// friction, resilience, cutoff, and the plane definition
|
|
//bounceOff ( 0.3, 0.3, 0, world )
|
|
|
|
applyDamping (0.995, 0.995, 0.995)
|
|
killIfOlderThan 12
|
|
// x/y/z
|
|
// explode (0, 0, 0, 2, 2, 2, 0.1, 2)
|
|
|
|
//killOutside ( box, -400, -400, -400, 400, 400, 400 )
|
|
|
|
// run this loop
|
|
applyMathSoFar
|
|
}
|
|
|