branchrust_reboot/main/naval_update/player_boat_optimscancel
19 Commits over 0 Days - ∞cph!
Revert BoatBuildingStation.GetForPlayer changes
Refactored separate creation of OBBs into a single function.
Steering wheel check uses same entity finding as rest of BBS functionality.
GetBoatBuildingStation uses FindTrigger on player instead of a vis check.
Boatbuilding UI: Only check vis every second,
Refactored BoatBuildingStation.GetPlayerCount to HasPlayerInBuildArea and it uses the bbs trigger instead of a vis. We don't care how many players, just if there are any or not.
Bump the BoatBuildingStation autoclose check interval up now that most people are gonna be using deploy & edit
Remove some redundant checks from CanClearArea.
Misc rate limiting.
Calculate and cache CanClear once a frame for the client when called - reuse it when there are multiple calls a frame (option menu show stuff)
Change all GetEntitiesInBuildArea for BoatBuildingBlock to VehiclesLarge layer
GetPlayerBoats() - GetEntitiesInBuildArea only checks VehicleLarge layer instead of all layers