Setwalkangle is a confusing function name as you do not set the angle, you set the amount a client presses the buttons. Please be aware of this and maybe change it to a two-input function for forward/back and left/right (-128 to 127, although real clients are limited to -127 to 127)