Skip to content

Commit 839740f

Browse files
committed
change(client/main): reduce grid size
- *seems* to result in better voice stability, especially for native audio.
1 parent 6860fef commit 839740f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ All of the config is done via ConVars in order to streamline the process.
4343
The ints are used like a boolean to 0 would be false, 1 true.
4444

4545
### 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.
46-
| ConVar | Default | Description | Parameter(s) |
47-
|-------------------------|---------|---------------------------------------------------------------|--------------|
48-
| voice_zoneRadius | 128 | Sets the zone radius size, on bigger servers you might need to set this lower. | int |
46+
| ConVar | Default | Description | Parameter(s) |
47+
|-------------------------|---------|--------------------------------------------------------------------|--------------|
48+
| voice_zoneRadius | 16 | Sets the zone radius size. | int |
4949
| voice_enableUi | 1 | Enable the built in user interface | int |
5050
| voice_enableProximityCycle | 1 | Enables the usage of the F11 proximity key, if disabled players are stuck on the first proximity | int |
5151
| voice_enableRadios | 1 | Enables the radio sub-modules | int |

client/main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ exports('setVoiceProperty', setVoiceProperty)
178178
---@return number returns the players current grid.
179179
local function getGridZone()
180180
local plyPos = GetEntityCoords(PlayerPedId(), false)
181-
local zoneRadius = GetConvarInt('voice_zoneRadius', 128) * 2
181+
local zoneRadius = GetConvarInt('voice_zoneRadius', 16) * 2
182182
local zoneOffset = (256 / zoneRadius)
183183
-- this code might be hard to follow
184184
return (

0 commit comments

Comments
 (0)