-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E2 function holoSetPose cannot affect multiple pose parameters #55
Comments
Wiki page doesn't seem to indicate this should happen, though it does say we should call http://wiki.garrysmod.com/page/Entity/InvalidateBoneCache. I'll give that a try once I have a chance. |
Thanks, I really appreciate it! |
Do you have your buttons set to toggle? I've just pasted this chip but replaced the |
You can tell they're toggled because those buttons lights are both on at the same time. |
I see. After testing again it I can see the issues, though I don't know of a way to fix it, my only guess would be this has to be called client side and http://wiki.garrysmod.com/page/Entity/InvalidateBoneCache has to be called. I'll give that a try tomorrow. |
Any progress on this? |
I don't think InvalidateBoneCache is needed for serverside SetPoseParameter. I may try it tonight. I'm feeling in the fixing mood. |
Awesome! |
This code works |
This code works too |
I see the problem. When you feed it a value that matches its previous value, it will reset to 0 when the other pose parameters are set. |
This works, but isn't a good solution.
|
The only solution is to network it and set them in client-side |
How easy/difficult would that end up being? |
Pretty easy |
serverside is done, now clientside. |
Try out #64 . Not tested fully but seems to work. |
Hello,
So I noticed a while back that the holoAnim extension had E2 functions for pose parameters, and I decided to try and make a model that uses them. I got halfway through making it work when I discovered a very strange problem; it seems that the
holoSetPose()
function can only affect one pose parameter at a time.A more technical way of describing the problem is that when
holoSetPose()
is used to set a pose parameter, all other pose parameters appear to reset to their "zero" position.At first I thought it was a problem with just my model, so I did a test using the HL2 Jeep/buggy model, which uses pose parameters to move the wheels up and down (among other things).
This is the test E2 I made, as you can see it's pretty simple.
Controlling the first pose parameter works fine. This is what happens when I lowered the first wheel:

This is what happens when I try the other one independently:

This is where the bug occurs. Setting the First, then the Second, does this:

When the sequence is reversed, the same thing happens, but it affects the other wheel:

Examining the model in HLMV shows both wheels being controllable at the same time; This only makes sense as both source vehicles and certain addons such as Simfphys use all necessary pose parameters to make their vehicles work.

I have not tested
holoGetPose()
to see if it correctly retrieves the pose parameter info.Thanks for your time and attention, and please let me know if you need any more information relating to the issue.
The text was updated successfully, but these errors were encountered: