-
Notifications
You must be signed in to change notification settings - Fork 81
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
Addons cannot change the appearance of voice bars #1727
Comments
That's a neat idea! I like that Also I think that the detective can speak globally as well? |
Unsure about this - I haven't noticed it whilst playing a new TTT2 server that has proximity enabled. I know there's a hook that can override voice proximity at a per-player basis though, which this item idea will likely use. |
Ah. Then I maybe just thought it would be useful for the detective to be able to speak globally (for example by hitting the team voice chat button?) I wanted to add more features and customizability to the voice panel anyway. There are also a few minor issues right now that I have to fix. I should probably focus on this next so this is done before I tackle something new |
I like the idea of the det team voice being re-used for global voice, but I also like the idea of someone taking a megaphone from the detective and using it in funny ways! In any case, yeah I would love some more customisability for the voice stuff. |
Honestly I'd love it if the detective would spawn by default with a megaphone if voice is enabled, without the need of an addon. But this would probably annoy quite a lot of people |
Is your feature request related to a problem? Please describe.
I don't see a clean way that addons can modify the voice bars of players.
Describe the solution you'd like
I'd like it to be possible for addons to change the appearance of voice bars via a hook - like how targetID has
TTTRenderEntityInfo
Describe alternatives you've considered
In theory it's probably possible for an addon to override
pure_skin_voice.lua
entirely to accomplish this (even though it would only need to overrideHUDELEMENT:DrawVoiceBar
), however I have 0 understanding of how this would work with different HUD skins.Additional context
This was considered after brainstorming an idea for a megaphone item - something that can be brought from the shop to force the user's voice to be non-proximity. One idea for this addon was to change the appearance of the user's voice bar to indicate the usage of the megaphone - possibly by adding a megaphone icon to the voice bar, by replacing the displayed player name / player icon, or by changing the colour of the voice bar.
The text was updated successfully, but these errors were encountered: