Unable to prevent multiplayer voice chat's ear-grabbing animation #1664
-
In a TTT2 server, I run this emote addon. The emotes are immediately interrupted/canceled if the player begins voice chat during it. To fix this, I want to prevent the voicechat animation. The wiki suggests simply overriding this hook. I ran the following code in shared context at
This had no visible impact. The print statement didn't execute either. Perhaps TTT2 is doing something different to run that animation? Does anyone know how I can prevent this animation, or interruption to a separate animation in general? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Overriding the Restructuring the TTT2 code and running the Aside: You just made me aware of a possible bug :D [1] [2] https://github.com/Facepunch/garrysmod/blob/68366f07a2ce93389cb54a231e3bcee1a2a8509e/garrysmod/gamemodes/terrortown/gamemode/cl_voice.lua#L503 |
Beta Was this translation helpful? Give feedback.
Overriding the
GrabEarAnimation
hook won't work because we explicitly perform the animation in thePlayerStartVoice
hook [1].This is done the same way in vanilla TTT [2].
Restructuring the TTT2 code and running the
GrabEarAnimation
hook instead might be an option to exploreAside: You just made me aware of a possible bug :D
[1]
TTT2/gamemodes/terrortown/gamemode/client/cl_voice.lua
Line 391 in d3801d6
[2] https://github.com/Facepunch/garrysmod/blob/68366f07a2ce93389cb54a231e3bcee1a2a8509e/garrysmod/gamemodes/terrortown/gamemode/cl_voice.lua#L503