branchrust_reboot/main/gunshot_network_range_improvementscancel
12 Commits over 0 Days - ∞cph!
Restored bolt and l9 to be 700 meters
All weapons can now be heard up to 400 meters away (50~ meters higher than regular network range)
Improve performance of BaseNetworkable::GetConnectionsWithin() by using a spatial grid to reduce the amount of players we need to check - rather than iterating over every player connection
main -> gunshot_network_range_Improvements
Bolty and l96 can be heard from up to 700~ meters away
Max before was around 350
main -> gunshot_network_range_improvements
Fixed a bug causing simple signal broadcast happen when it should be the more complex one
More debug logging
Set MP5 high for the same reason
Every projectile weapon now has a maximum effect distance that the effect can be heard
Set the bolt to an insanely high value (FOR TESTING - NOT FINAL)
Effects can now be provided with a max distance
If this new max distance is provided then we will do an additional distance check to see if the effect should be sent to any connection within the new max distance
Eg effect will check distance to see if the other player is close enough regardless of default network range
Add in convar to enable/disable long distance sounds, force the longer ShouldNetworkTo entity signal check if i or occlusion are enabled