More slope/pathfinding stuff