Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Better Sign For Night Light
- @inputs EGP:wirelink
- @persist Reasons:array
- interval(100)
- if(first()){
- # Reasons (Don't add more than 7.)
- Reasons = array(
- " Past Line",
- " Raiding Tools/Guns out",
- " Vaping in Base",
- " Being Annoying",
- "Threatening Me",
- "Shooting Towards Base"
- )
- # Clear
- EGP:egpClear()
- # Background
- EGP:egpCircle(1,vec2(256,256),vec2(156,156))
- EGP:egpColor(1,vec(45,45,45))
- # Foreground
- EGP:egpCircleOutline(2,vec2(256,256),vec2(156,156))
- EGP:egpSize(2,2)
- # Seperator
- EGP:egpLine(3,vec2(116,186),vec2((512-116),186))
- EGP:egpSize(3,2)
- # Sub Title
- EGP:egpText(4,"Reasons For",vec2(236,156))
- EGP:egpSize(4,25)
- EGP:egpAlign(4,1,1)
- # KOS Col
- EGP:egpText(5,"KOS",vec2(328,156))
- EGP:egpSize(5,25)
- EGP:egpAlign(5,1,1)
- EGP:egpColor(5,vec(255,0,0))
- # Loop of reasons
- for(I = 1, Reasons:count()){
- EGP:egpText(6 + I, Reasons[I,string],vec2(256,186 + (I * 15)))
- EGP:egpAlign(6+ I, 1, 1)
- EGP:egpSize(6 + I, 20)
- }
- holoCreate(1)
- holoModel(1,owner():model())
- holoPos(1,EGP:egpToWorld(vec2(256, 400)))
- holoScale(1,vec(0.25))
- holoAng(1,EGP:entity():angles())
- holoAnim(1,"ACT_GMOD_GESTURE_DISAGREE")
- timer("reset",(holoAnimLength(1)*1000)-500)
- }
- if(clk("reset")){
- holoAnim(1,"ACT_GMOD_GESTURE_DISAGREE")
- timer("reset",(holoAnimLength(1)*1000)-500)
- }
- # Color loop
- for(I = 2, 4){
- EGP:egpColor(I,hsv2rgb(sin(curtime()*1.5)*255,1,1))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement