Grapple Hook and hookable surface types

I’m making the same type of 3rd person grappling hook as in this video:

But it lacks hookable surface types, the hook attaches on everything on the map. How do i make the grappling hook attach only a certain types of surfaces?