
My thought after was to record those key angles into a table and then interpolate current angle to closest from the table. It'd just be a table of 16 numbers.
But i never considered this mod to actually use more than 8 rail directions, the extra angles between were just for immersion. I set it to 8 in mod settings myself.