SHARE
TWEET

donnu kills ya mum

a guest Jul 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @name Holo Clock V2
  2. @inputs
  3. @outputs Sec Min Hour A B C Done
  4. @persist
  5. @trigger
  6.  
  7. interval(1)
  8.  
  9. Size=10
  10.  
  11. Model="tetra"
  12.  
  13. Sec=time("sec")
  14. Min=time("min")
  15. Hour=time("hour")
  16.  
  17. setName(Hour+":"+Min+":"+Sec)
  18.  
  19. D=(360/60)
  20. E=(360/12)
  21.  
  22. A=min(A+1,60)
  23.  
  24. holoCreate(A)
  25. holoPos(A,entity():pos()+vec(sin(A*6)*Size,cos(A*6)*Size,0)+entity():up()*30)
  26. holoModel(A,"hq_sphere")
  27. holoScaleUnits(A,vec(1,1,1))
  28. holoParent(A,entity())
  29. holoColor(A,vec(0,0,0))
  30.  
  31. if (A==60) {
  32. B=min(B+1,12)
  33. holoScaleUnits(B*5,vec(2,2,2))
  34. holoColor(B*5,vec(255,255,255))
  35. }
  36.  
  37. if (B==12) {
  38. C=min(C+1,4)
  39. holoScaleUnits(C*15,vec(2,2,2))
  40. holoColor(C*15,vec(255,255,0))
  41. Done=1
  42. }
  43.  
  44. #Seconds
  45. if (Done) {holoCreate(62)
  46. holoScaleUnits(62,vec(0,1,18))
  47. holoAng(62,entity():angles()+ang(90,90-Sec*D,0))
  48. holoModel(62,Model)
  49. holoPos(62,entity():pos()+entity():up()*30)
  50. holoColor(62,vec(255,0,0))
  51. holoParent(62,entity())
  52.  
  53. }
  54.  
  55.  
  56. #Minutes
  57. if (Done) {holoCreate(63)
  58. holoScaleUnits(63,vec(0,1,18))
  59. holoAng(63,entity():angles()+ang(90,90-Min*D,0))
  60. holoModel(63,Model)
  61. holoPos(63,entity():pos()+entity():up()*30.1)
  62. holoColor(63,vec(0,255,0))
  63. holoParent(63,entity())
  64.  
  65. }
  66.  
  67. #Hours
  68. if (Done) {holoCreate(64)
  69. holoScaleUnits(64,vec(0,2,18))
  70. holoAng(64,entity():angles()+ang(90,90-Hour*E,0))
  71. holoModel(64,Model)
  72. holoPos(64,entity():pos()+entity():up()*30.2)
  73. holoColor(64,vec(0,0,255))
  74. holoParent(64,entity())
  75.  
  76. holoCreate(65)
  77. holoModel(65,"hq_sphere")
  78. holoScaleUnits(65,vec(24,24,-20))
  79. holoPos(65,entity():pos()+entity():up()*29.9)
  80.  
  81. holoColor(60,vec(255,0,0))
  82.  
  83. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top