@name 
@inputs 
@outputs 
@persist 
@trigger 
@persist V:vector Target:array
@persist Chip:entity Plate:entity Me:entity 




RedDot = holoEntity(1):pos()


User = owner()
AimPos = User:aimPos()
Fire = User:keyAttack1()
UserEye = User:eye()



#________________________________

runOnTick(1)
Chip=entity()
findExcludePlayer(owner())
findExcludePlayer("ben")
findExcludePlayer("rock")

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()) < 100 & Target[I,entity]:isAlive()){
          Plate:propFreeze(0)  
    
     E = propSpawn("models/props_c17/oildrum001_explosive.mdl",RedDot+vec(0,0,1000),0)   
    E:applyForce(vec(0,0,50)*-5000)
    E:setTrails(500,500,500, "trails/smoke",vec(50,50,50),255,255,255)
    
    
    
        T = Target[I,entity]:pos()
        V = (T - Plate:pos() + vec(0, 0, 50)) * 5000
      Plate = propSpawn("models/props_c17/oildrum001_explosive.mdl",RedDot+vec(0,0,1000),0) 
        
        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()) > 100){
                
                  Plate:propFreeze(0)  
                
            }else{
                continue
    }}}

#_________________________________










    E = propSpawn("models/props_c17/oildrum001_explosive.mdl",RedDot+vec(0,0,1000),0)   
    E:applyForce(vec(0,0,50)*-5000)
    E:setTrails(500,500,500, "trails/smoke",vec(50,50,50),255,255,255)
