Have you tried the standard walk code from the manual? I think it makes the player slower on steep hills, when you adjust that parameter you can also make the player stop when the hill it too steep.