@name Croco's Rave Bubble
@model models/hunter/plates/plate8x8.mdl
@persist V:vector Target:array
@persist Chip:entity Plate:entity Me:entity 
runOnTick(1)
holoCreate(1)
holoModel(1,"hqsphere")
holoScale(1,vec(100,100,100))
holoColor(1,vec(0,0,0))

holoCreate(2)
holoModel(2,"hqsphere")
holoScale(2,vec(-100,-100,-100))
holoColor(2,vec(randint(255),randint(255),randint(255)))

holoCreate(3)
holoModel(3,"models/props_phx/construct/metal_angle360.mdl")
holoScale(3,vec(13,13,1))
holoColor(3,vec(randint(255),randint(255),randint(255)))
holoMaterial(3,"models/shiny")

if(first()){
entity():soundPlay(10000,10000,"Ravebreak.mp3")
#ventity():propNotSolid(1)
entity():setAlpha(0)
holoEntity(1):soundPlay(10000,10000,"Ravebreak.mp3")
holoEntity(2):soundPlay(10000,10000,"Ravebreak.mp3")
holoEntity(3):soundPlay(10000,10000,"Ravebreak.mp3")
}


Chip=entity()

findByClass("player")
E2=findByModel("models/dav0r/camera.mdl")
Target = findToArray()

for(I=1,Target:count()){
    
    if(ops() > 4000){break}
    
    if(Target[I,entity] != owner() & Target[I,entity]:pos():distance(Chip:pos()) < 400 & Target[I,entity]:isAlive()){
      #    Plate:propFreeze(0)  
        T = Target[I,entity]:pos()
        V = (T - Plate:pos() + vec(0, 0, 50)) * 5000
        Plate:applyForce(V + $V * 5)
       
        
        holoCreate(4)
        holoModel(4,"hqicosphere2")
        holoScale(4,vec(-5,-5,-5))
        holoColor(4,vec(0,0,0))
        holoPos(4,T + vec(0,0,50))
        soundPlay(randint(1,200),0, "npc/zombie_poison/pz_breathe_loop2.wa")
 
            if(Target[I,entity]:pos():distance(Chip:pos()) > 360){
                
               #   Plate:propFreeze(0)  
                
            }else{
                continue
    }
        
        
        
    }else{holoDelete(4)}
    
}
