@name RPTHING AMMUT
@inputs 
@outputs Grab Jumppos:vector Jump
@persist H:entity O:entity E:entity
@trigger 
interval(1)
if(first()){
    E = entity()
    Scale = 9999

    H = E:isWeldedTo()
O = owner()
}
findExcludeClass("*")
findIncludeModel("models/props/cs_assault/money.mdl")
findInSphere(E:pos(),Scale)
if(find()){
        if(owner():keyAttack2()){
    G = findClosest(entity():pos())
    if(G:model() == "models/props/cs_assault/money.mdl"){
        GX = G:pos():x()
        GY = G:pos():y() 
        GZ = G:pos():z()
        
        Jumppos = G:pos() + vec(0,0,20)
        Jump  = 1
        
       timer("reset",500) 
   #     E:propNotSolid(1)
    #    H:propNotSolid(1)
        

     timer("grab",1000) 
    }
    else{G = findClosest(entity():pos())}
    
}

}
if(owner():keyReload()){
    reset()
}

if(owner():keySprint()){
    

        
    Jumppos = O:pos() + vec(0,0,100)
        Jump  = 1
        timer("reset",500)
        timer("reset2",500)
       # E:propNotSolid(0)
       # H:propNotSolid(0)
    }
    
    if(clk("reset")){
    Jump = 0}

if(clk("grab")){
Grab = 1  }

if(clk("reset2")){
Grab = 0  }
