Skip to content

Unable to prevent multiplayer voice chat's ear-grabbing animation #1664

Closed Answered by Histalek
luke-de-vos asked this question in Q&A
Discussion options

You must be logged in to vote

Overriding the GrabEarAnimation hook won't work because we explicitly perform the animation in the PlayerStartVoice 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 explore

Aside: You just made me aware of a possible bug :D

[1]

ply:AnimPerformGesture(ACT_GMOD_IN_CHAT)

[2] https://github.com/Facepunch/garrysmod/blob/68366f07a2ce93389cb54a231e3bcee1a2a8509e/garrysmod/gamemodes/terrortown/gamemode/cl_voice.lua#L503

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luke-de-vos
Comment options

Answer selected by Histalek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants