branchrust_reboot/main/improved_network_groups/variable_cell_sizecancel
7 Commits over 0 Days - ∞cph!
Add support for different entity ranges per entity
Internally the overworld now has three overlapping network group grids with different cell sizes
Players subscribe to all layers with different radii
Entities can be configured with a preference for which network layer to place them on
Bugfix(tests): fix invalid position logic in ServerOcclusionGroup tests
Tests: unit tests pass
Fix most of the ServerOcclusionGroup tests
Default grid size was too small (it just used out of bounds cells before)
Fixed IsVisibleFrom to also test against the circular radius
Reset some convars that can make the tests fail
Use larger cell sizes for the deep sea network group layer so we can reduce the number of cells we need to subscribe to
Reduce visibilityRadiusDeepSea from 20 to 10 because the radius is in cells and cell sizes are twice as big now
Add support for different cell sizes for network group layers