@name SpawnBomb2
@inputs 
@outputs Boom
@model models/expression 2/cpu_controller.mdl
@persist 
@trigger 
E=entity()
runOnTick(1)
runOnChat(1)
findInSphere(E:pos(),1000)
findIncludeClass("npc_")
findExcludeEntity(owner())
N=findToArray()
if(!N[1,entity]:isAlive()){N:remove(1)}
if(N:count()){
    XYZ=N[1,entity]:pos()+N[1,entity]:height()/2
    Speed=100
    #if(rangerOffset(XYZ,E:pos()):hit()){
        E:applyForce(Speed*(XYZ-E:pos())-E:mass()*(E:vel()/2))
        Dist=E:pos():distance(XYZ)
        if(Dist<70){Boom=1}else{Boom=0}
    #}
}
