• New way of opening/closing Gravity Gun claws?
    3 replies, posted
I've tested the code in the Gravity Gun Claws thread posted 3 years ago, but it doesn't seem to work anymore, both partial and whole. I've looked around the Gmod Wiki for info on Pose Parameters, restarted Garry's Mod, tried doing code based around the original, but nothing worked. If you're curious, I want both models - viewmodel and worldmodel - to open/close their claws. Anyone tried finding how to solve this issue?
iirc you can get the viewmodel of the weapon and do: ViewModel:SetPoseParameter("active", 1)
If by "get the viewmodel" you mean 'get the viewmodel using player:GetViewModel()' then it's the same method of some of the ones I tried, and it doesn't work.
There's a bug with the gravity gun weapon that forces the player's viewmodel to set the "active" poseparameter to whatever it wants even when it's not deployed, you can see for yourself when you switch away from the gravity gun to the physics gun, the claws will still try to close themselves. You can fix it hackily in a couple of ways: use a Entity:AddCallback, remove the gravity gun from the player's weapons or report the bug so it gets fixed once and for all.
Sorry, you need to Log In to post a reply to this thread.