Curious about fast almost player like AI for a shooter

Hello, right now I’m trying to create an AI that mimics the one seen in this video:

He even shows his math, but I have no idea how to translate it to blueprint. Any advice?

I’m mostly curious about the sine movement/avoidance of player’s line of sight via ray trace.

I’ll give you a hint. Look into get actor right vector.