// // chaingun fire // numParticles 5 //material textures/particles/smokepuff material textures/sfx/firetrail //initialVelocity ( cone, 0.0, 0.0, 0.0, 0, 0, 0, 3.2, 3 ) initialVelocity ( point, 0.0, 0.05, 0.0 ) size ( 10, 14 ) //randomColor ( 0.1, line, 0.1, 0.1, 0.1, 0.3, 0.3, 0.3 ) //angle ( 0, 359 ) //rotationSpeed ( -1, 1 ) trailSize 2 liveForever moveWithParent begin { // when a particle dies, it will re-start with the same base velocity copyVelocitys // target color rgba, scale to get there targetColor ( 0.6, 0.4, 0.1, 0.0, 0.55 ) targetSize (1, 0.09) //source ( 0.55, box, -1, -1, -1, 1, 1, 1) //source ( 1.55, plane, -5, -5, 2.0, 10, 0, 0, 0, 15, 0) //source ( 0.55, cone, 0, 0, 0, 0, 0, 0, 0, 0) source (2, point, 0, 0, 2) source (1, point, 1, 0, 2) source (1, point, 0, 1, 2) // what kind of gravity force is applied to them //gravity ( 0.0, 0.0, 0.020 ) killIfOlderThan 5 killUnseen // slow them down //applyDamping (0.9, 0.9, 1) // run this loop applyMathSoFar }