Even more fun, phent_getvelocity() detects if the object is moving up a ramp as velocity along the Z axis. So this just flat out wont work. How very frustrating.