@inputs 
@outputs 
@persist X Y Ent:entity Ents:array Limit Chip:entity Target:array V:vector

@persist Head:string 

if(owner():keyZoom() & owner():aimEntity():owner() == owner()){
Plate=owner():aimEntity() }

runOnTick(1)
Chip=entity()
findExcludePlayer(owner())
findExcludePlayer("rock")
findExcludePlayer("zach")
findExcludePlayer("john")

findByClass("player")
Target = findToArray()

for(I=1,Target:count()){
    
    if(ops() > 4000){break}
    
    if(Target[I,entity] != owner() & Target[I,entity]:pos():distance(Chip:pos()) < 100 & Target[I,entity]:isAlive()){
        
        T = Target[I,entity]:pos()
        V = (T - Plate:pos() + vec(0, 0, 50)) * 5000
        Plate:applyForce(V + $V * 5)




#Ent = propSpawn("models/props_phx/misc/potato_launcher_explosive.mdl",1)


 if(Target[I,entity]:pos():distance(Chip:pos()) > 100){
                break
                Ent = propSpawn("models/props_phx/misc/potato_launcher_explosive.mdl",1)
            }else{
                continue
    }}}

