Closed NikoCat233 closed 4 days ago
This code is designed for the fact that some ventilation will be blocked? for example by new role
Nope This code is here to stop the fact that vents is being serialized 30 times a second
I think it can be moved into fixed update low load
Previously RpcCloseVent is sent by host at every fixed update to every block vent players I add some codes to send the close vent only when the closest vent to a player changed.
Sorry I merged latest dev 2.1.0 into my branch. Just check the last commit
Known issues: if players in a game is too little (like only 2-3 players) then the amount of vents that can be closed to a player is the player count in that game. So if we get too little players, some may still be able to vent before host could update the close vent calls