Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Holo Clock V2
- @inputs
- @outputs Sec Min Hour A B C Done
- @persist
- @trigger
- interval(1)
- Size=10
- Model="tetra"
- Sec=time("sec")
- Min=time("min")
- Hour=time("hour")
- setName(Hour+":"+Min+":"+Sec)
- D=(360/60)
- E=(360/12)
- A=min(A+1,60)
- holoCreate(A)
- holoPos(A,entity():pos()+vec(sin(A*6)*Size,cos(A*6)*Size,0)+entity():up()*30)
- holoModel(A,"hq_sphere")
- holoScaleUnits(A,vec(1,1,1))
- holoParent(A,entity())
- holoColor(A,vec(0,0,0))
- if (A==60) {
- B=min(B+1,12)
- holoScaleUnits(B*5,vec(2,2,2))
- holoColor(B*5,vec(255,255,255))
- }
- if (B==12) {
- C=min(C+1,4)
- holoScaleUnits(C*15,vec(2,2,2))
- holoColor(C*15,vec(255,255,0))
- Done=1
- }
- #Seconds
- if (Done) {holoCreate(62)
- holoScaleUnits(62,vec(0,1,18))
- holoAng(62,entity():angles()+ang(90,90-Sec*D,0))
- holoModel(62,Model)
- holoPos(62,entity():pos()+entity():up()*30)
- holoColor(62,vec(255,0,0))
- holoParent(62,entity())
- }
- #Minutes
- if (Done) {holoCreate(63)
- holoScaleUnits(63,vec(0,1,18))
- holoAng(63,entity():angles()+ang(90,90-Min*D,0))
- holoModel(63,Model)
- holoPos(63,entity():pos()+entity():up()*30.1)
- holoColor(63,vec(0,255,0))
- holoParent(63,entity())
- }
- #Hours
- if (Done) {holoCreate(64)
- holoScaleUnits(64,vec(0,2,18))
- holoAng(64,entity():angles()+ang(90,90-Hour*E,0))
- holoModel(64,Model)
- holoPos(64,entity():pos()+entity():up()*30.2)
- holoColor(64,vec(0,0,255))
- holoParent(64,entity())
- holoCreate(65)
- holoModel(65,"hq_sphere")
- holoScaleUnits(65,vec(24,24,-20))
- holoPos(65,entity():pos()+entity():up()*29.9)
- holoColor(60,vec(255,0,0))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement