Changing grapple system based on which object you interact with

I’m trying to make a grapple system which you can switch between having a direct “zip-to” system and one is a swing system based on the object you interact with, how would I do this so it’s within the same system and so I can use the same input keys?

When you’re using LineTrace, you can figure out what kind of object you’re hitting, either by Casting, or using Interfaces or Tags, etc. And depending on the hit object, run different grappling logic.