Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Luna_holoico_Rainbow
- @inputs
- @outputs
- @persist T I Target:entity Color:vector RandomColor:vector
- entity():setColor(255,255,255,0)
- Antidupe=1 #set to 1 to enable, set to 0 to disable
- if(duped()&Antidupe==1){
- hint("Nope.",7)
- selfDestruct()
- }
- if (Color:x() != RandomColor:x())
- {
- Color = Color:setX(Color:x() + (Color:x() < RandomColor:x() ? 1 : -1))
- }
- elseif (Color:y() != RandomColor:y())
- {
- Color = Color:setY(Color:y() + (Color:y() < RandomColor:y() ? 1 : -1))
- }
- elseif (Color:z() != RandomColor:z())
- {
- Color = Color:setZ(Color:z() + (Color:z() < RandomColor:z() ? 1 : -1))
- }
- else
- {
- RandomColor = vec(randint(0, 255), randint(0, 255), randint(0, 255))
- }
- T+=5
- interval(1)
- if(first()) {
- entity():setColor(0,0,0,0)
- holoCreate(1)
- holoModel(1,"icosphere")
- holoMaterial(1, "models/wireframe")
- entity():setColor(0,0,0,0)
- }
- holoPos(1,owner():shootPos()+vec(0,0,sin(T)*10+30))
- if(I < 180) {I++}
- if(I == 180) {I = -180}
- holoAng(1,ang(0,I,I))
- holoColor(1,Color)
- # holoColor(1,vec(random(255),random(255),random(255)))
- Antidupe=1 #set to 1 to enable, set to 0 to disable
- if(duped()&Antidupe==1){
- hint("Nope.",7)
- selfDestruct()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement