@name 2Chainz
@inputs 
@model models/props_junk/plasticbucket001a.mdl
@outputs 
@persist Prop:entity Pos:vector Ang:angle Props:array
@trigger 

runOnChat(1)
runOnTick(1)


Pos = (owner():pos() - entity():pos() + vec(0,0,100))

entity():applyForce((Pos + $Pos*5)*entity():mass())
entity():applyAngForce(Ang + $Ang*5)
if(owner():keyUse()){
    Prop = propSpawn("models/props_junk/plasticbucket001a.mdl", entity():pos(),0)
    Prop:setMass(50000)
    Prop:setMaterial("models/alyx/emptool_glow") 
    Prop:setColor(vec(255,0,0)) 
    Prop:applyForce((owner():forward())*100000000)
    Props:pushEntity(Prop)
    }
if(chatClk(owner())){
    Chat = owner():lastSaid():explode(" ")
    if(Chat:string(1)=="/d"){
        hideChat(1)
        Props:propDelete()
        }
    }
