Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. @name Better Sign For Night Light
  2. @inputs EGP:wirelink
  3. @persist Reasons:array
  4.  
  5. interval(100)
  6.  
  7. if(first()){
  8.  
  9. # Reasons (Don't add more than 7.)
  10. Reasons = array(
  11. " Past Line",
  12. " Raiding Tools/Guns out",
  13. " Vaping in Base",
  14. " Being Annoying",
  15. "Threatening Me",
  16. "Shooting Towards Base"
  17. )
  18.  
  19. # Clear
  20. EGP:egpClear()
  21.  
  22. # Background
  23. EGP:egpCircle(1,vec2(256,256),vec2(156,156))
  24. EGP:egpColor(1,vec(45,45,45))
  25.  
  26. # Foreground
  27. EGP:egpCircleOutline(2,vec2(256,256),vec2(156,156))
  28. EGP:egpSize(2,2)
  29.  
  30. # Seperator
  31. EGP:egpLine(3,vec2(116,186),vec2((512-116),186))
  32. EGP:egpSize(3,2)
  33.  
  34. # Sub Title
  35. EGP:egpText(4,"Reasons For",vec2(236,156))
  36. EGP:egpSize(4,25)
  37. EGP:egpAlign(4,1,1)
  38.  
  39. # KOS Col
  40. EGP:egpText(5,"KOS",vec2(328,156))
  41. EGP:egpSize(5,25)
  42. EGP:egpAlign(5,1,1)
  43. EGP:egpColor(5,vec(255,0,0))
  44.  
  45. # Loop of reasons
  46. for(I = 1, Reasons:count()){
  47. EGP:egpText(6 + I, Reasons[I,string],vec2(256,186 + (I * 15)))
  48. EGP:egpAlign(6+ I, 1, 1)
  49. EGP:egpSize(6 + I, 20)
  50. }
  51.  
  52.  
  53. holoCreate(1)
  54. holoModel(1,owner():model())
  55. holoPos(1,EGP:egpToWorld(vec2(256, 400)))
  56. holoScale(1,vec(0.25))
  57. holoAng(1,EGP:entity():angles())
  58. holoAnim(1,"ACT_GMOD_GESTURE_DISAGREE")
  59. timer("reset",(holoAnimLength(1)*1000)-500)
  60. }
  61.  
  62. if(clk("reset")){
  63. holoAnim(1,"ACT_GMOD_GESTURE_DISAGREE")
  64. timer("reset",(holoAnimLength(1)*1000)-500)
  65. }
  66.  
  67. # Color loop
  68. for(I = 2, 4){
  69. EGP:egpColor(I,hsv2rgb(sin(curtime()*1.5)*255,1,1))
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement