Skip to content

Commit

Permalink
change(client/main): reduce grid size
Browse files Browse the repository at this point in the history
- *seems* to result in better voice stability, especially for native audio.
  • Loading branch information
AvarianKnight committed Mar 7, 2021
1 parent 6860fef commit 839740f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ All of the config is done via ConVars in order to streamline the process.
The ints are used like a boolean to 0 would be false, 1 true.

### NOTE: voice_zoneRadius expects a multiple of 4, if you expect to have a lot of players in a smaller area its a good idea to reduce this to a smaller number.
| ConVar | Default | Description | Parameter(s) |
|-------------------------|---------|---------------------------------------------------------------|--------------|
| voice_zoneRadius | 128 | Sets the zone radius size, on bigger servers you might need to set this lower. | int |
| ConVar | Default | Description | Parameter(s) |
|-------------------------|---------|--------------------------------------------------------------------|--------------|
| voice_zoneRadius | 16 | Sets the zone radius size. | int |
| voice_enableUi | 1 | Enable the built in user interface | int |
| voice_enableProximityCycle | 1 | Enables the usage of the F11 proximity key, if disabled players are stuck on the first proximity | int |
| voice_enableRadios | 1 | Enables the radio sub-modules | int |
Expand Down
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ exports('setVoiceProperty', setVoiceProperty)
---@return number returns the players current grid.
local function getGridZone()
local plyPos = GetEntityCoords(PlayerPedId(), false)
local zoneRadius = GetConvarInt('voice_zoneRadius', 128) * 2
local zoneRadius = GetConvarInt('voice_zoneRadius', 16) * 2
local zoneOffset = (256 / zoneRadius)
-- this code might be hard to follow
return (
Expand Down

0 comments on commit 839740f

Please sign in to comment.