@name Slay Bubble W/O ULX
@inputs 
@outputs 
@persist Players:array
@persist V:vector Target:array
@persist Chip:entity Plate:entity Me:entity 
@trigger 
if(first())
{
Chip=entity()
holoCreate(0)
holoModel(0,"hqicosphere2")
    holoScale(1000,vec(75,75,75))
holoColor(0,vec(100,86,0))
holoAlpha(0,100)


 holoCreate(1000)
  holoModel(1000,"hqicosphere2")
    holoColor(1000,vec(255,255,255))
    holoScale(1000,vec(-75,-75,-75))
    holoColor(1000,vec(255,255,255))
    holoMaterial(1000,"models/props_lab/tank_glass001")

#holoCreate(1000)
#holoModel(1000,"hqicosphere2")
 #   holoScale(1001,vec(-75,-75,-75))
#holoColor(1,vec(255,255,255))

#holoMaterial(1000,"models/props_lab/tank_glass001")


holoCreate(1001)
holoModel(1001,"hqicosphere2")
    holoScale(1001,vec(75,75,75))
holoColor(1001,vec(255,255,255))

holoMaterial(2,"models/props_combine/portalball001_sheet")

holoCreate(1000)
holoModel(1000,"hqicosphere2")
    holoScale(1001,vec(75,75,75))
holoColor(1000,vec(255,255,255))
holoMaterial(1000,"models/props_lab/warp_sheet")

} 


runOnChat(1)
runOnTick(1)
Chip = entity()
if(owner():keyZoom() & owner():aimEntity():owner() == owner()){
Plate=owner():aimEntity() 
Me = owner()
}
runOnTick(1)
Chip=entity()
findExcludePlayer(owner())
findExcludePlayer("dova")
findExcludePlayer("ender")

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(I)
        holoModel(I,"hqicosphere2")
        holoScale(I,vec(-5,-5,-5))
        holoColor(I,vec(0,0,0))
        holoPos(I,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
    }}}
