@name wombo combo
@persist M:entity Ph
if(first())
{
    runOnTick(1)
    holoCreate(1,entity():toWorld(vec(0,0,75)))
    holoModel(1,"hq_tube")
    holoScale(1,vec(1.5,1.5,14))
    holoColor(1,vec(100,100,75))
}

R = owner():keyReload()
 
if(M:isValid())
{
    local Rd = rangerOffset(100,M:pos(),M:forward())
    if(Rd:hit())
    {
        M:propBreak()
        Ph = 0
    }else
    {
        if(Ph)
        {
            A = (owner():aimPos()-M:pos()):toAngle()
            FA = M:toLocal(A)
            M:setAng(M:toWorld(FA*0.05))
        }else
        {
            M:setAng(owner():eyeAngles():setPitch(-90))
            Ph = M:pos():z()>=entity():pos():z()+4000
        }
        M:setPos(M:toWorld(vec(45,0,0)))
    }
}elseif(changed(R)&R)
{
    soundPlay("fire",4.1,"weapons/rocket_shoot.wav")
    M = propSpawn("models/props_phx/amraam.mdl",entity():pos()+vec(0,0,75),owner():eyeAngles():setPitch(entity():toWorld(ang(-90,0,0)):pitch()),1)
    M:setTrails(3,15,7,"trails/smoke",vec(255),255)
}
