Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. @name Building Sign
  2. @inputs EGP:wirelink
  3. @persist Color:vector Hue
  4. @model models/hunter/plates/plate.mdl
  5.  
  6. if(first() || duped()){
  7. EGP:egpRoundedBox(1, vec2(250,300), vec2(350,250))
  8. EGP:egpColor(1, vec(148,0,211))
  9. EGP:egpRoundedBox(2, vec2(250,300), vec2(347,247))
  10. EGP:egpColor(2, vec(0,0,0))
  11. EGP:egpText(5, "BUILDING", vec2(100,260))
  12. EGP:egpSize(5, (70))
  13. timer("color", tickInterval()*1000)
  14. }
  15.  
  16. if (clk("color")) {
  17. Hue++
  18. Color=hsv2rgb(vec(Hue,1,1))
  19.  
  20. if(Hue == 360){
  21. Hue = 0
  22. }
  23.  
  24. EGP:egpColor(1, Color)
  25. EGP:egpColor(5, Color)
  26. Random = vec(random(255),random(255),random(255))
  27. timer("color", tickInterval()*1000)
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement