@name Holo Rave
@persist On 

runOnTick(1)

E = entity()
Radius = 1000

On = 1

if (first() | duped()) {
for (I = 1,15) {

holoCreate(I)
holoParent(I, E)
holoModel(I,"hqicosphere2")
holoScale(I, vec(1,1,1) * 0.5)

holoColor(I,vec(255,255,255))
holoMaterial(I,"models/debug/debugwhite")
holoEntity(I):setTrails(10,1,1,"trails/laser",vec(random(255),random(255),random(255)),255)

}
}

if (On == 1) {

holoPos(1, E:pos() + randvec(-Radius,Radius))
holoPos(2, E:pos() + randvec(-Radius,Radius))
holoPos(3, E:pos() + randvec(-Radius,Radius))
holoPos(4, E:pos() + randvec(-Radius,Radius))
holoPos(5, E:pos() + randvec(-Radius,Radius))
holoPos(6, E:pos() + randvec(-Radius,Radius))
holoPos(7, E:pos() + randvec(-Radius,Radius))
holoPos(8, E:pos() + randvec(-Radius,Radius))
holoPos(9, E:pos() + randvec(-Radius,Radius))
holoPos(10, E:pos() + randvec(-Radius,Radius))
holoPos(11, E:pos() + randvec(-Radius,Radius))
holoPos(12, E:pos() + randvec(-Radius,Radius))
holoPos(13, E:pos() + randvec(-Radius,Radius))
holoPos(14, E:pos() + randvec(-Radius,Radius))
holoPos(15, E:pos() + randvec(-Radius,Radius))

holoColor(1, vec(random(255),random(255),random(255)))
holoColor(2, vec(random(255),random(255),random(255)))
holoColor(3, vec(random(255),random(255),random(255)))
holoColor(4, vec(random(255),random(255),random(255)))
holoColor(5, vec(random(255),random(255),random(255)))
holoColor(6, vec(random(255),random(255),random(255)))
holoColor(7, vec(random(255),random(255),random(255)))
holoColor(8, vec(random(255),random(255),random(255)))
holoColor(9, vec(random(255),random(255),random(255)))
holoColor(10, vec(random(255),random(255),random(255)))
holoColor(11, vec(random(255),random(255),random(255)))
holoColor(12, vec(random(255),random(255),random(255)))
holoColor(13, vec(random(255),random(255),random(255)))
holoColor(14, vec(random(255),random(255),random(255)))
holoColor(15, vec(random(255),random(255),random(255)))


} else {
for (I = 1,15) {
holoPos(I, E:pos() + vec(0,0,20))

}
}
