Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- weapon/rocket/trail {
- //The rocket's world light
- color 0.9 0.9 0.9
- size 130
- Light
- width 1
- shader flareShader
- alpha 0.8
- color 1 0.5 0.1
- //shader lglsFlare
- shader flareShader
- //Will be the light colour
- distance rand*0.2+0.1
- {
- repeat 5 {
- origin0 origin0+(rand-0.5)*2
- origin1 origin1+(rand-0.5)*2
- origin2 origin2+(rand-0.5)*2
- random dir
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 10*rand
- emitter "0.06 * rand * rand" {
- spark cullNear
- }
- }
- ///////////////////////////////////// SMOKE
- alpha 0.3
- color 0 0 0
- shader smokePuff
- rotate 360 * rand
- // ok, above distance uses rand() and averages to about
- // a distance of 0.2
- // "distance 3 + rand * 2" averages to about 4
- // so you want smoke to occur with about a (0.2 / 4.0) ==
- // 0.05 (5% chance)
- //distance 3 + rand * 2
- if (rand <= 0.05)
- {
- emitter rand * 0.7 //rand * 0.8
- {
- alphaFade 0
- size 8 + rand * 2 + lerp * 25
- sprite cullNear
- }
- }
- color 1 0.35 0.1
- alpha 0.99
- shader flareshader
- //interval 0.0010 {
- // rockets move at 900ups so this can be converted to:
- // 900 * 0.001 == 0.9 game units
- //distance 0.9 {
- // same logic, chance of happening is 0.2 / 0.9
- if (rand <= 0.23) {
- normalize parentVelocity v0
- inverse v0
- wobble v0 velocity 0.01 + rand*18
- scale velocity velocity 100 + rand*10
- emitter 0 + rand*0.125 {
- size 2.5
- moveGravity 0
- Sprite
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment