Advertisement
Guest User

fdfdfsf

a guest
Feb 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. @name Rainbow Trail Body
  2. @persist [O]:entity [X,Y,M,D]:number
  3. #255,0,0 red
  4. #255,125,0 orange
  5. #255,255,0 yellow
  6. #0,255,0 green
  7. #0,125,255 blue
  8. #125,0,255 purple
  9. Me=owner()
  10.  
  11. if (first()) {
  12. runOnTick(1)
  13. holoCreate(0)
  14. holoCreate(1)
  15. holoCreate(2)
  16. holoCreate(3)
  17. holoCreate(4)
  18. holoCreate(5)
  19. holoCreate(6)
  20. holoCreate(7)
  21. holoCreate(8)
  22. holoCreate(9)
  23. holoCreate(10)
  24. holoCreate(11)
  25. holoCreate(12)
  26. holoCreate(13)
  27. holoCreate(14)
  28. holoCreate(15)
  29. holoCreate(16)
  30. holoCreate(17)
  31. holoAlpha(0,0)
  32. holoAlpha(1,0)
  33. holoAlpha(2,0)
  34. holoAlpha(3,0)
  35. holoAlpha(4,0)
  36. holoAlpha(5,0)
  37. holoAlpha(6,0)
  38. holoAlpha(7,0)
  39. holoAlpha(8,0)
  40. holoAlpha(9,0)
  41. holoAlpha(10,0)
  42. holoAlpha(11,0)
  43. holoAlpha(12,0)
  44. holoAlpha(13,0)
  45. holoAlpha(14,0)
  46. holoAlpha(15,0)
  47. holoAlpha(16,0)
  48. holoAlpha(17,0)
  49. holoEntity(0):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  50. holoEntity(1):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  51. holoEntity(2):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  52. holoEntity(3):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  53. holoEntity(4):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  54. holoEntity(5):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  55. holoEntity(6):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  56. holoEntity(7):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  57. holoEntity(8):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  58. holoEntity(9):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  59. holoEntity(10):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  60. holoEntity(11):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  61. holoEntity(12):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  62. holoEntity(13):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  63. holoEntity(14):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  64. holoEntity(15):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  65. holoEntity(16):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  66. holoEntity(17):setTrails(6,0,3,"trails/laser",vec(random(255),random(255),random(255)),220)
  67.  
  68.  
  69. O = owner()
  70. X = 0
  71. Y = 0
  72. M = 10
  73. D = 18
  74. }
  75.  
  76. if (!changed(O:pos())) {
  77. holoPos(0,O:pos()+vec(cos(X)*D,sin(Y)*D,0))
  78. holoPos(1,O:pos()+vec(cos(X)*D,sin(Y)*D,4))
  79. holoPos(2,O:pos()+vec(cos(X)*D,sin(Y)*D,8))
  80. holoPos(3,O:pos()+vec(cos(X)*D,sin(Y)*D,12))
  81. holoPos(4,O:pos()+vec(cos(X)*D,sin(Y)*D,16))
  82. holoPos(5,O:pos()+vec(cos(X)*D,sin(Y)*D,20))
  83. holoPos(6,O:pos()+vec(cos(X)*D,sin(Y)*D,24))
  84. holoPos(7,O:pos()+vec(cos(X)*D,sin(Y)*D,28))
  85. holoPos(8,O:pos()+vec(cos(X)*D,sin(Y)*D,32))
  86. holoPos(9,O:pos()+vec(cos(X)*D,sin(Y)*D,36))
  87. holoPos(10,O:pos()+vec(cos(X)*D,sin(Y)*D,40))
  88. holoPos(11,O:pos()+vec(cos(X)*D,sin(Y)*D,44))
  89. holoPos(12,O:pos()+vec(cos(X)*D,sin(Y)*D,48))
  90. holoPos(13,O:pos()+vec(cos(X)*D,sin(Y)*D,52))
  91. holoPos(14,O:pos()+vec(cos(X)*D,sin(Y)*D,56))
  92. holoPos(15,O:pos()+vec(cos(X)*D,sin(Y)*D,60))
  93. holoPos(16,O:pos()+vec(cos(X)*D,sin(Y)*D,64))
  94. holoPos(17,O:pos()+vec(cos(X)*D,sin(Y)*D,68))
  95.  
  96. }
  97. else {
  98. holoPos(0,O:pos()+vec(0,0,3))
  99. holoPos(1,O:pos()+vec(0,0,6))
  100. holoPos(2,O:pos()+vec(0,0,9))
  101. holoPos(3,O:pos()+vec(0,0,12))
  102. holoPos(4,O:pos()+vec(0,0,0))
  103. holoPos(5,O:pos()+vec(0,0,0))
  104. holoPos(6,O:pos()+vec(0,0,0))
  105. holoPos(7,O:pos()+vec(0,0,0))
  106. holoPos(8,O:pos()+vec(0,0,0))
  107. holoPos(9,O:pos()+vec(0,0,0))
  108. holoPos(10,O:pos()+vec(0,0,0))
  109. holoPos(11,O:pos()+vec(0,0,0))
  110. holoPos(12,O:pos()+vec(0,0,0))
  111. holoPos(13,O:pos()+vec(0,0,0))
  112. holoPos(14,O:pos()+vec(0,0,0))
  113. holoPos(15,O:pos()+vec(0,0,0))
  114. holoPos(16,O:pos()+vec(0,0,0))
  115. holoPos(17,O:pos()+vec(0,0,0))
  116.  
  117. }
  118.  
  119. X+=M
  120. Y+=M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement