Garry's Mod Leaks

[LEAK] Voice Chat Graphs FIX

Submitted by rafaelcomepastel, , Thread ID: 73750

Thread Closed
06-02-2018, 03:38 AM
This post was last modified: 06-02-2018, 03:48 AM by rafaelcomepastel
#1
[Image: 30312e61ee4aa7a249e5d605f0a7fedd.png]
[Image: a76e0e5a45079d2a7aee280a0b2509dd.png&w=1...output=jpg]

Quote:VISUALIZAES PRXIMAS O MAIS ASAP



CARACTERSTICAS
  • Temas
  • Com a adio de temas a este addon, agora voc pode personalizar o addon para seu prprio gosto e salv-lo. Voc pode ter tantos temas quanto quiser, e pode haver uma quantidade infinita de estilos diferentes que voc pode tentar. Alguns temas padro esto includos no prprio addon para que voc possa experiment-los e aprender a criar o seu prprio.
    Grficos
  • The graphs on the addon are generated by the volume of the player's voice when they talk. This gives players a more responsive feel and incentive to use their mic. ATM you can choose between a select few types of graphs. Some are more simple than others and some may have a greater FPS impact than others. Currently, the supported graphs are no graphs, line graphs, bar graphs, and curved line graphs. More may come in the future. Send suggestions.
    Game Modes
  • Currently all game modes should work with the addon. The only reason a game mode should not with this addon is because the game mode replaces the default GMOD voice boxes itself. If this is the case, please feel free to open a support ticket and request support for it. Currently,TTTandMurderare supported and have default themes built specifically for them.DarkRPalso has a custom theme that fits good with its gameplay.
    FPS
  • On lower end computers, especially when configured with more demanding features, this addon can affect FPS. The effect it has on your FPS really all depends on how you configure the addon and the PC being played on. Any decent computer should be able to run this addon fine with multiple people talking (GTX660 tested w/ great FPS). If low-end PC players are getting decreased FPS, the command
    voice_chat_graph
  • can be used to enable or disable the most FPS heavy feature, the graph itself (Box, Avatar, Name, etc.. will still be visible).
    voice_chat_graph 0
  • to disable and
    voice_chat_graph 1
  • to enable. There is a config option to set whether players automatically have it disabled or enabled when they first join the server.
    Position & Size
  • In each of the theme files, there are extensive options to perfectly position and size the voice box. You can have them on either side of the screen, starting from the top or even on the bottom going up. The size of the voice box can also be configured to any desirable size so you can perfectly fit where you want everything based on your other HUD elements so nothing overlaps.
    Avatar Style
  • The style of the avatar can also be changed. Currently supported for avatars are circular, square, and player model. More may come in the future. Please feel free to open a support ticket and send your suggestions. Borders around the avatar can also be configured to display different colors based on whether a player is on your friends' list or not, and of course, the size of the avatar can be changed.
    Volume Effects
  • The use of volume effects will give a more responsive and reactive feel when players talk. There are themes with examples on how to use the voice volume to create your own desired effect. One theme and a popular effect is having the color change from green to red based on the volume. The louder the player is, the redder their voice graph will be. There are many more possibilities that can be created if you can just imagine what you want it to look like. Not all graphs have to use a volume effect, in fact, many of the themes include examples on other types of color choices for the graph that include solid colors and smooth transitioning rainbow graphs. There are infinite possibilities.
    Paintable
  • In each theme file, you have complete access to repaint the entire style of the voice box to the extent that Lua will take you. Both the panel's Paint and PaintOver functions are open to your configuration. PaintOver is mainly used for displaying on the very top of the voice box so nothing overlaps the content painted in it. Used typically for the player's name and other relative text that should be above the voice graph. The Paint function is mainly used for drawing the background of the voice box. This is the background color, border, and anything else that should be displayed behind the voice graph.
    Graph Customization
  • As with almost everything in this addon, the graph itself can be configured. This turns the already supported graphs into an infinite possibility of design and feel. This gives you a way to stand out and have a unique look and feel for your servers only. These options can have a greater impact on player FPS if edited carelessly, but should not decrease it too much. Currently, the variables that you can edit are listed below.
    VoiceChatGraphBorderControls whether to display the border around each graph segment.VoiceChatGraphSizeThis controls the size of each graph segment. Lower values = More FPS impact, but smoother and sharper graphs.VoiceChatGraphSpacingThis is the spacing between graph segments. Typically when using the line graph or curved line graph, this should stay 0 unless you have a specific idea in mind. Setting the option other values than 0 may result in holes in the graph making it look disconnected. This is why this option is usually used when configuring a custom bar graph where gaps between segments are needed.VoiceChatGraphAmpThis option controls the sensitivity of a player's volume to the height of the graph. Higher values will create for more sensitive and taller graphs. Lower options will make the graph shorter and less sensitive. Too low and you may not see any graph, too high and the graph may stay at the maximum height.VoiceChatGraphSpeedThe graph speed controls how fast each graph segment will move, which in general controls how fast the entire graph moves. Higher values may come out looking more choppy than lower values, but having good FPS helps to mitigate that. Low FPS and the graph may appear to move slower and choppy. Higher FPS and the graph may appear to move faster and smoother.Major Updates
  • Updates to this script are going to be happening in the next few days or weeks. I will be introducing more features, fixes, optimizations, and themes. I plan on making themes easier to use and create, as well as adding some new good looking default themes included in the addon for those that don't know how to make a custom theme or don't want to put in the work to create one. Bug fixes will still roll through as these other features are being introduced and developed. Buy now before the new features are added, possibly driving up the price of the add-on.


INSTALLATION
  • Download the
    .zip
  • file containing the addon from here.
  • Extract the
    .zip
  • file to where ever you want.
  • Take the folder named
    voice_chat_graphs
  • and place it into your server's
    addons
  • folder.
  • Navigate to
    voice_chat_graphs/lua
  • and open
    voice_chat_config.lua
  • in your favorite text editor.
  • Now edit the config file to your preferences and preferred theme.


THEMES
  • Themes are located in
    voice_chat_graphs/voicethemes
  • and can be opened in your text editor.
  • Please reference
    default.lua
  • when creating or editing a theme. This file includes all the documentation, comments, and help for themes.
  • When creating a theme, you should just create a new
    .lua
  • file and copy the contents of one theme into your new file and edit from there.
  • The name of the file w/o the extension is the name you should use in the config when changing to that theme. For example, if your new theme was named
    cooltheme.lua
  • , you would use
    cooltheme
  • in the main config file.
  • If you switch themes while the server is running, you'll need to change the map or restart the server for the new theme to be displayed.
    NOTE ON THEME REQUESTS:If any help is needed setting up the config or with themes, please open a support ticket. I cannot make a custom theme for everyone, I simply don't have the time. This is why so many options for your own customization are included. If you would like to buy a custom theme created by me for you, open a support ticket and we can talk about it. If the compensation is good, the theme will look good and will have effort put into it. I want you to be happy with the design.


[Image: cr9Sri0.png]
[Image: p3C5EFL.png]





Content locked
This content has been locked. Please login or register in order to unlock it.

RE: [LEAK] Voice Chat Graphs FIX

#2
Nice solid share! I see this addon being more and more popular recently, a lot of servers are using it.

RE: [LEAK] Voice Chat Graphs FIX

#3
Thank you for the sink. I searched for it for a long time!

RE: [LEAK] Voice Chat Graphs FIX

#4
Although this chat and a very old version, but still better than the standard

RE: [LEAK] Voice Chat Graphs FIX

#5
Although this chat and a very old version, but still better than the standard

Users browsing this thread: 2 Guest(s)