Repository navigation
Fixed thirdperson animations from third-party addons - #1858
Conversation
|
Thanks for digging into these issues! Heads up: The earliest i can review this is probably this weekend or next week! |
There was a problem hiding this comment.
I looked over the changes and got some concerns and questions we need to discuss and i would prefer not to merge those in their current state.
- Not to shame you, but if this code was written with AI, I'd prefer if you'd disclose so (if not, I'm sorry its just hard to tell in todays world)
- Can you elaborate on the exact problem that was fixed here? The issue is rather old and lacks some information on how this behaves in the current version and what you expect it to do
- Can you elaborate how the Custom Taunts addon uses these functions or GMOD functions to handle animations, so we can understand why and what we need to adjust here?
- I'd prefer not to introduce additional public methods, especially since GMOD also has functions like
IsPlayingTauntalready. This will be very confusing and we need to check if we handle all cases correctly
Let's first collect more information on this and then we can discuss a potential solution together. This way you don't waste time iterating too much on a potential solution.
Thanks for your understanding!
So I could implement your comments:
What do you think? |
|
Thanks for the explanation! Going forward:
What do you think? @TimGoll what do you think about just not playing the hand to head animation in general when another animation plays? I think this should be fine, but want a second opinion on this. |
Good question, I have to think about this. Not sure honestly. While I think TTT2 would improve a lot by better/more animations and sounds (like the corpse search sound I added), I never actually looked at such details |
|
I adjusted the code. |
saibotk
left a comment
There was a problem hiding this comment.
Just a small suggestion.
Otherwise clean!
Thanks for your effort and the simplification!
This PR fixes #1690 .
Third-party addons that create thirdperson animations like Custom Taunt can use gesture slots that conflict with TTT2 gesture handling (for example: GESTURE_SLOT_CUSTOM).
Because of this, the local player’s third-person animation could be visually overridden and not appear correctly.
There was also a second issue with the TTT2 voice chat gesture (ACT_GMOD_IN_CHAT) which interfered with active third-party thirdperson animations.
This fix adds clientside external gesture detection and suppresses the TTT2 ACT_GMOD_IN_CHAT gesture while an external gesture is active.
To make this more robust for all kinds of addons, both AddVCDSequenceToGestureSlot and AnimRestartGesture are tracked, while TTT2 internal gestures are excluded from that detection.
I tested this with the addon mentioned above and can confirm the issue is resolved (thirdperson animation is now visible for the local player).
The voice chat ACT_GMOD_IN_CHAT behavior also works as expected, and I did not encounter errors during testing.
Edit:
Description doesn't fit the code changes anymore, see comments below.