genscript: ladders finally work

Also fixed a bug when setting pitch angle using cl_pitchup and cl_pitchdown.
Merge branch 'ladders'