Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Building Sign
- @inputs EGP:wirelink
- @persist Color:vector Hue
- @model models/hunter/plates/plate.mdl
- if(first() || duped()){
- EGP:egpRoundedBox(1, vec2(250,300), vec2(350,250))
- EGP:egpColor(1, vec(148,0,211))
- EGP:egpRoundedBox(2, vec2(250,300), vec2(347,247))
- EGP:egpColor(2, vec(0,0,0))
- EGP:egpText(5, "BUILDING", vec2(100,260))
- EGP:egpSize(5, (70))
- timer("color", tickInterval()*1000)
- }
- if (clk("color")) {
- Hue++
- Color=hsv2rgb(vec(Hue,1,1))
- if(Hue == 360){
- Hue = 0
- }
- EGP:egpColor(1, Color)
- EGP:egpColor(5, Color)
- Random = vec(random(255),random(255),random(255))
- timer("color", tickInterval()*1000)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement