lgls

q3mme grenade script

Mar 24th, 2012
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. weapon/grenade/impact {
  2. vibrate 70
  3. sound sound/weapons/rocket/rocklx1a.wav
  4. //Mark on the wall, using direction from parent
  5. shader gfx/damage/burn_med_mrk
  6. size 64
  7. Decal
  8.  
  9. shader rocketExplosion
  10. color 1 0.75 0
  11. rotate rand*360
  12. emitter 0.55 {
  13. // size will goto zero after 0.5 of the time
  14. size 30
  15. Sprite
  16. size 300 * clip(2 - 2*lerp)
  17. Light
  18. }
  19.  
  20. repeat 70 {
  21. wobble dir velocity 300*rand
  22. scale velocity velocity 400 + rand*50
  23. width 2
  24. size 8 + rand
  25. shader flareShader
  26. alpha 0.5
  27. color 1 0.75 0
  28. emitter "0.9 + rand*0.3" {
  29. moveGravity 200
  30. moveBounce 300 0.75
  31. colorFade 0
  32. Spark
  33. }
  34. }
  35.  
  36. repeat 350 {
  37. wobble dir velocity 360*rand
  38. scale velocity velocity 70 + rand*50
  39. size 2 + rand
  40. shader flareShader
  41. alpha 0.5
  42. color 1 0.25 0
  43. emitter "4 + rand*0.3" {
  44. moveGravity 300
  45. colorFade 0
  46. Sprite
  47. }
  48. }
  49.  
  50.  
  51.  
  52. //
  53. width 3
  54. shader flareShader
  55. alpha 1
  56. color 0.6 0.3 0.1
  57. repeat 30 + 20*rand {
  58. random dir
  59. wobble dir velocity 100 + rand*20
  60. // scale velocity velocity 200 + rand*50
  61. size 70+100*rand
  62. emitter "1.5 * rand" {
  63. colorFade 0
  64. moveGravity 0
  65. spark
  66. }
  67. }
  68.  
  69. // big particles
  70. alpha 0.75
  71. color 1 0.5 0.25
  72. shader flareShader
  73. repeat 16 {
  74. wobble dir velocity 45*rand
  75. scale velocity velocity 0
  76. size 45 * rand
  77. emitter "0.3 + rand*0.7" {
  78. moveGravity 0
  79. moveBounce 100 0.5
  80. colorFade 0
  81. Sprite
  82. }
  83. }
  84.  
  85. }
Advertisement
Add Comment
Please, Sign In to add comment