@name BHop Assist
@persist [User Ent]:entity
@inputs A:wirelink

interval(1)

if (first()) {
    User=owner()
}

if (changed(A)) {
    Ent=A:entity()
    Ent:propNotSolid(1)
    Ent:setAlpha(0)
}

local Center=User:pos()+User:aabbSize()*vec(0,0,1)
local Pos=Center+User:forward()*-50
Ent:setAng((Pos-Center):toAngle()+ang(-90,0,0))
Ent:setPos(Pos)

local Force=User:keyAttack2() ? 9e10 : 0
A["Force",number]=Force
A["Velocity",number]=Force
