Bristleback-like ability

I'm trying to make an ability that works similar to bristleback, in the sense that it should give damage resistance based on the angle of the damage source, but in all honesty, I have no idea where to even begin. Any help would be appreciated.

Comments