lgls

mmefx shaft/plasma script

Mar 20th, 2012
679
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1.  
  2. weapon/lightning/impact {
  3. vibrate 0
  4. soundList {
  5. sound/weapons/lightning/lg_hit.wav
  6. sound/weapons/lightning/lg_hit2.wav
  7. sound/weapons/lightning/lg_hit3.wav
  8. }
  9.  
  10. shader flareshader
  11. alpha 0.8
  12. color 1 0.3 0.1
  13.  
  14. normalize dir v0
  15. addScale origin v0 origin 1
  16. repeat 3 {
  17. wobble dir velocity 5 + rand*25
  18. scale velocity velocity 250 + rand*50
  19. size 0.75+ rand*1.5
  20. emitter 1 + rand*1.55 {
  21. colorFade 0
  22. Sprite
  23. }
  24. }
  25.  
  26.  
  27. shader flareShader
  28. alpha 0.75
  29. color 1 0.8 0.7
  30. repeat 3 {
  31. wobble dir velocity 10 + rand*20
  32. scale velocity velocity 200 + rand*50
  33. size 0.25 + rand*1.25
  34. emitter "1 + rand" {
  35. moveBounce 400 0.75
  36. colorFade 0
  37. Sprite
  38. }
  39. }
  40. }
  41.  
  42.  
  43.  
  44. weapon/plasma/projectile {
  45. size 16
  46. shader sprites/plasma1
  47. sprite
  48. loopSound "sound/weapons/plasma/lasfly.wav"
  49.  
  50. distance 3 {
  51. shader lglsFlare
  52.  
  53. origin0 origin0+(rand-0.5)*10
  54. origin1 origin1+(rand-0.5)*10
  55. origin2 origin2+(rand-0.5)*10
  56.  
  57. color 0.5 0.5 1
  58. size 3+rand*2
  59.  
  60. repeat 5 {
  61. random velocity
  62. scale velocity velocity 25 + rand * 25
  63. emitter 0.1 {
  64. movegravity 10
  65. colorFade 0
  66. sprite
  67. }
  68. }
  69. }
  70. }
  71.  
  72. weapon/plasma/trail {
  73. // Animating sprite of the explosion
  74. shader lglsFlare
  75. //Will be the light colour
  76. size 16
  77.  
  78. distance 0.7 {
  79. color 0 0 0
  80. emitter 0.075 {
  81. red 0.01*(1-lerp)
  82. green 0.025*(1-lerp)
  83. blue 0.1*(1-lerp)
  84.  
  85. Sprite
  86. }
  87. }
  88. }
  89.  
  90.  
  91. weapon/plasma/impact {
  92. vibrate 30
  93. sound sound/weapons/plasma/plasmx1a.wav
  94.  
  95. size 18
  96. shader gfx/damage/plasma_mrk
  97. Decal energy
  98.  
  99.  
  100. width 4
  101. shader flareShader
  102. alpha 1
  103. color 0.25 0.5 0.75
  104. repeat 20 + 20*rand {
  105. random dir
  106. wobble dir velocity 100 + rand*20
  107. // scale velocity velocity 200 + rand*50
  108. size 120*rand
  109. emitter "1.5 * rand" {
  110. colorFade 0
  111. spark
  112. }
  113. }
  114.  
  115. // small particles
  116. alpha 0.75
  117. color 0.25 0.5 1
  118. shader lglsPrt
  119. repeat 10 {
  120. random velocity
  121. scale velocity velocity 150 + rand * 50
  122. size 1 + rand * 1.5
  123. emitter 2 + rand {
  124. moveBounce 400 0.75
  125. colorFade 0.75
  126. Sprite
  127. }
  128. }
  129.  
  130. // big particles
  131. alpha 0.75
  132. color 0 0.25 1
  133. shader lglsFlare
  134. repeat 2 {
  135. random velocity
  136. scale velocity velocity 70 + rand * 50
  137. size 20 * rand
  138. emitter 2 + rand {
  139. moveBounce 400 0.75
  140. colorFade 0
  141. Sprite
  142. }
  143. }
  144. }
Advertisement
Add Comment
Please, Sign In to add comment