Cover system - following the wall?

hi guys
Ive just made a cover system with line traces,
but how can i force my character to follows wall directions when they are in different angle? (picture 3)
any suggestion would be helpful!!

thanks a lot !!!

Just send a line trace from character to wall. Than use move companent to node ( location: impact point or location, rotation:get actor rotation). I made it and it works in my project.