Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

IK controls for lua #2468

Open Vuthakral opened 2 months ago

Vuthakral commented 2 months ago

Details

I won't pretend to have even a beginning understanding on how the Inverse Kinematics system in Source actually works under the hood, but I do know that natively they're just controlled by sequences of a model which tells them how to behave. Even something as simple as being able to target an IK by name and direct it to a given position would be a huge game changer for all kinds of systems.

I specifically want it to just be able to add left hand markers to my weapon worldmodels so that I can have players gripping weapons properly instead of their hand/arm clipping through the weapon with the hl2 smg/ar2 IK position, but it has potential for a lot of other uses as well.

Goldermor commented 2 months ago

Create a model of a weapon with an attachment indicating the point of grip, make animation with ikrule attachment. Maybe it will work. Similar effects can be achieved with pose parameters. But all this requires new animations to be made. I doubt that there is an alternative. And i can't even imagine that something like this can be implemented in lua