Skip to content
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

Open
Spanospy opened this issue Jan 20, 2025 · 5 comments
Open

Addons cannot change the appearance of voice bars #1727

Spanospy opened this issue Jan 20, 2025 · 5 comments
Assignees

Comments

@Spanospy
Copy link
Contributor

Spanospy commented Jan 20, 2025

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 override HUDELEMENT: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.

@TimGoll
Copy link
Member

TimGoll commented Jan 21, 2025

That's a neat idea! I like that

Also I think that the detective can speak globally as well?

@TimGoll TimGoll self-assigned this Jan 21, 2025
@Spanospy
Copy link
Contributor Author

Spanospy commented Jan 21, 2025

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.

@TimGoll
Copy link
Member

TimGoll commented Jan 21, 2025

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

@Spanospy
Copy link
Contributor Author

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.

@TimGoll
Copy link
Member

TimGoll commented Jan 21, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants