It would seem to me that a wall/ceiling climbing script would simply involve to parts:

standard movment script with pan tilt adjustment for the angle of the wall/floor/ceiling and an adjustment the gravity vector based on the angle of the entity.


Optimism is an occupational hazard of programming: feedback is the treament.
Kent Beck