LibreVR / RoboRevive

A Robo Recall mod that adds native Vive support
125 stars 16 forks source link

Grip Toggle #7

Closed vicvr closed 7 years ago

vicvr commented 7 years ago

Ok, so I've been dabbling with this a bit more and I have a working Grip Toggle functionality. Two problems though:

  1. Again I had to modify base game assets: \RoboRecallModKit\RoboRecall\Content\Character\Player\Avatars\BP_DefaultHand.uasset > Manage Grip State
  2. Are blueprints not translated to readable code anywhere? Very difficult to understand what goes where and they don't seem to be version-control-friendly, so collaboration might become a huge pain

My blueprint changes, if anyone wants to take a look:

grip_toggle

I'll be adding Hybrid grip support as well, in the meantime how the heck do I package this so it's usable by others without modifying core files?

vicvr commented 7 years ago

Haven't had time to share this yet, but here's my implementation for the hybrid grip functionality, if anyone wants to reuse it. I'll open another issue to share my current changes.

hybrid-grip-1 hybrid-grip-2a hybrid-grip-3

CrossVR commented 7 years ago

I'm going to look at this issue next. Again, we can't override BP_DefaultHand without affecting the VR pawn which is not an option as explained earlier.

However, we may be able to override gripping behavior for our custom weapons. This is also preferable to just having Toggle Grip on everything.

In any case, I'll be sure to take into account your work here, it should prove useful.

CrossVR commented 7 years ago

There doesn't seem any way to implement this without touching BP_DefaultHand. I think I'll just implement a Hybrid Grab like Revive in the SteamVR plugin itself.

CrossVR commented 7 years ago

Hybrid grip support is implemented in commit 8821373951bfa2e3e804d78ff1e72f71ab386076.