@name Kill Ball
@persist V:vector Target:array
@persist Chip:entity Plate:entity Me:entity  HHH

if(first()){
HHH  = 0
    holoCreate(1000)
    holoModel(1000,"hqicosphere2")
    holoScale(1000,vec(100,100,100))
    holoColor(1000,vec(100,100,200))

    holoCreate(1001)
    holoScale(1001,vec(-100,-100,-100))
    holoModel(1001,"hqicosphere2")
    holoColor(1001,vec(255,255,255))
    holoAlpha(1001,100)
    holoParent(1000,entity())
    holoParent(1001,entity())
#Plate= propSpawn("models/props_junk/TrashDumpster01a.mdl",entity():pos(),0)
}

runOnChat(1)
runOnTick(1)
Chip = entity()


Me = owner()

runOnTick(1)
Chip=entity()
findExcludePlayer(owner())
findExcludePlayer("Cenn")
findExcludePlayer("bull")
findExcludePlayer("gaming")

findExcludePlayer("Falco")
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()) < 750 & Target[I,entity]:isAlive()){
        
        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))
        if(Target[I,entity]:isAlive()){
            if(!Target[I,entity]:name():find("flirt")){
                if(HHH==0){
                    HHH=1
        concmd("ulx sslay " + Target[I,entity]:name())
        timer("resetslay",2000)
    }
}
}

        soundPlay(randint(1,200),0, "npc/zombie_poison/pz_breathe_loop2.wa")
        
            if(Target[I,entity]:pos():distance(Chip:pos()) > 330){
                break
            }else{
                continue
            }
        
    }else{holoDelete(I)}
    
}
if(clk("resetslay")){
HHH=0}
