Advertisement
LunaScripts

E2 Holo #1

Feb 29th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. @name Luna_holoico_Rainbow
  2. @inputs
  3. @outputs
  4. @persist T I Target:entity Color:vector RandomColor:vector
  5. entity():setColor(255,255,255,0)
  6.  
  7.  
  8. Antidupe=1 #set to 1 to enable, set to 0 to disable
  9. if(duped()&Antidupe==1){
  10. hint("Nope.",7)
  11. selfDestruct()
  12. }
  13. if (Color:x() != RandomColor:x())
  14. {
  15. Color = Color:setX(Color:x() + (Color:x() < RandomColor:x() ? 1 : -1))
  16. }
  17. elseif (Color:y() != RandomColor:y())
  18. {
  19. Color = Color:setY(Color:y() + (Color:y() < RandomColor:y() ? 1 : -1))
  20. }
  21. elseif (Color:z() != RandomColor:z())
  22. {
  23. Color = Color:setZ(Color:z() + (Color:z() < RandomColor:z() ? 1 : -1))
  24. }
  25. else
  26. {
  27. RandomColor = vec(randint(0, 255), randint(0, 255), randint(0, 255))
  28. }
  29.  
  30.  
  31. T+=5
  32. interval(1)
  33. if(first()) {
  34. entity():setColor(0,0,0,0)
  35. holoCreate(1)
  36. holoModel(1,"icosphere")
  37. holoMaterial(1, "models/wireframe")
  38. entity():setColor(0,0,0,0)
  39. }
  40. holoPos(1,owner():shootPos()+vec(0,0,sin(T)*10+30))
  41. if(I < 180) {I++}
  42. if(I == 180) {I = -180}
  43. holoAng(1,ang(0,I,I))
  44. holoColor(1,Color)
  45. # holoColor(1,vec(random(255),random(255),random(255)))
  46.  
  47. Antidupe=1 #set to 1 to enable, set to 0 to disable
  48. if(duped()&Antidupe==1){
  49. hint("Nope.",7)
  50. selfDestruct()
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement