Skip to content

Commit 77189b0

Browse files
committed
networking: change a lot and see what happens
1 parent 04b6deb commit 77189b0

File tree

3 files changed

+517
-444
lines changed

3 files changed

+517
-444
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,6 +2161,17 @@ This may be useful if you have `holylib_networking_transmit_all_weapons` set to
21612161
> [!NOTE]
21622162
> If both `holylib_networking_transmit_all_weapons` and `holylib_networking_transmit_all_weapons_to_owner` are set to `0`, only the active weapon of the player will be networked.<br>
21632163
2164+
#### holylib_networking_transmit_one_per_tick(default `0`)
2165+
If enabled, one additional weapon is networked per tick, the slot always changes rotating through all weapons.<br>
2166+
This allows you to have `holylib_networking_transmit_all_weapons` and `holylib_networking_transmit_all_weapons_to_owner` but still allow others to receive all weapons of a player over time.<br>
2167+
This helps to reduce networking cost as networking all weapons of every player is very expensive easily being the most expensive thing<br>
2168+
Setting it to `1` causes it to network the additional weapon to **all** players<br>
2169+
Setting it to `2` causes it to network the additional weapon **only** to the owner<br>
2170+
2171+
#### networking_bind_gmodhands_to_player(default `1`)
2172+
If enabled, the GMOD Hands entity / the entity set with `Player:SetHands` will be bound to the player and only networked with the player himself.<br>
2173+
Will become useless with https://github.com/Facepunch/garrysmod-requests/issues/2839<br>
2174+
21642175
## steamworks
21652176
This module adds a few functions related to steam.<br>
21662177

0 commit comments

Comments
 (0)