pushback player depending on an angle

Hello ! I would like to have knockback like the map “mega knockback” . The knock back that the target receive should be straight from the pov of the shooter
Scheme :