branchrust_reboot/main/naval_updatecancel
198 Commits over 183 Days - 0.05cph!
Added GetMaterialAtPosition to MeshTerrainRoot, hooked up to evaluate when a position is in the deep sea
This solves footstep sounds and impact fx on the deep sea islands not working as expected
Had to emulate the SetupSplatLookup process from TerrainSplatMap
This will be skipped on the server as MeshTerrainRoot is an IClientComponent, which I believe should be fine since we largely use this for fx
S2P all islands
Fixed GroundWatch not working on small ramps
Merge from naval_update/industrial_optim
Added 15 industrial tests to the test suite
Covers basic item transfers, splitting, filtering and filter fail/pass IO passthrough scenarios
Fixed magnet crane not marked as Can Sleep (I swear I did this last week)
Early return from the DroppedItem underwater check if the attached rigidbody is sleeping (it's unlikely to change submerged state while sleeping)
Removed Vis.Entities from the artificial light and temperature calculations for growables, now queries a Grid of light and temperature sources
These paths are now completely physics free
Merge from relationship_optim
Merge from botcollider_optim
Don't do any processing for UpdateReputations if the player's reputation state hasn't changed
Readd nextPlayerCheck to JunkpileWater, we don't need to be running this check every frame on every junkpile
Adjust TOD headless check to work via compiler defines, it seems liike cameras are still present on the server (although not doing anything) so it thought it was running on the client
Should save 0.1ms a frame
Marked FishSwarm as client only, was profiling as 0ms but it was still running a coroutine so might as well nuke it on the server
Remove SimpleFloatingEntity and associated prefabs, they were never used
Magnet crane can now sleep
Seems to take a couple of tries to actually settle once a player dismounts
Had to add some box colliders to replace the wheels otherwise the crane would sink into the ground once the wheels were disabled
The one magnet crane on the map was taking 0.28ms each fixed update even when not in use and was the slowest part of the fixed update, now takes 0.06ms once sleeping
Merge from farm_plant_respawn_fix
Reduce underwater_drag_budget_ms default to 0.05 (was 0.1)
Disable nav mesh obstacle carving on LootContainers spawned in the deep sea (can be controlled with debug.disableLootNavObstaclesInDeepSea convar)
Strip all NavMeshObstacles on floating cities
JunkpileWaterWorkQueue frame budget now defaults to 0.05ms (was 0.25)
Merge from nav_optimisation
Bump radius to 200m just to be safe
Static planter boxes in the deep sea (farm barge) spawn their plants ripe and will respawn them every 2 minutes
Fix casino npc not hooked up to vending machine
S2P all floating cities
Adjust scale of deep sea ghost ship markers
Fixed warning spam on space LR
Merge from lr_canvas_rework
Wrap the bag parenting logic behind a convar that's on by default just in case (debug.bag_respawn_parenting) as it's a little risky
When respawning on a sleeping bag that is parented to a player boat, parent the player to the boat immediately on spawning instead of waiting for the parenting volume to pick it up
Hopefully fixes cases of getting stuck clipping when spawning close to a solid object while the boat is in motion
Sail canvas collider now ignores player movement, prevents players geting stuck
Switch the boat planner material to Rust Standard/Cloth, fixes wacky motion blur
Add a death screen icon for the new scientist
Clamp the cannon pitch and yaw to zero on the client as the camera eye controller was still being run and rotating around even though we couldn't see it since the cannon takes over the camera
Fixes the player spinning around when dismounting the cannon
Fixed coconut world spawn with wrong label
FIxed wrong item id on coconut item
Disable the local player body if looking up in a cannon at an extreme angle, prevents the player body clipping into the camera
Fixed incorrect id's on two deep sea dwellings
Fixed trailing whitespace on deploy animation state causing a state could not be found warning when deploying the planner viewmodel
Can no longer use the spray can on modular boats
Added debug.showAllCullingVolumes, overrides the culling volume behaviour and forces everything to show regardless of camera position (although the underlying LOD components could still cull themselves based on distance settings)
Admin only
▅█▄▌▋ ▆▄▍▅▍ ▋▉█▌, ▉▋▌▍█▄ ▋▅▅▄▍▇▋▄▇ ▅▊█▅▄▄▇ ▄▌█▉█▄▋▇, ▇▅▇▇▄▉▉▉▆ ▋▄▄ ▆▄▍█▉ ▄▉▄▆ ▆▇ ▇▌▅▋▍█▍▉ ▋▇▌▋ ▋▍▇▍▌▉▅ ▆█▄ ▄▄▍ ▍▍▄██▊▄ ▄▋▍▉▌▋▊▄ ▇▅▇▋█
AddIslandBounds now uses a TryAdd, unsure how duplicates are ending up here
Fixed mainland fog of war being cleared when deep sea closes
Null check in TerrainPath:FindClosest
Add PT Boats to deep sea vehicle whitelist
▄▄▇▄▌▉ █▌▋▋▉▉▅▊█▉▌▉▄▋▌▅█▆▇▍█ ▋▉ ▊▆▊▅█▇ ▋▋▌▌▄
█▊▊▄▇▌▄▇ ▊▌▄▍ ▌▋ ▇▍▉▅▋▍▅ ▋▆▅█▍▇▊▆ ▊▌▍▊▄▆ ▆▉ █▌▉▍▄▄ ▋▉▇▋█ ▄█ ▅ ▊▅▍▍ ▋█ █.▉█
█▇▄▍▄ ▅▇▌ █▄ █ ▅▆▅ ▍▄▊█▉ ▅▆▍ ▉▌▉▅▋▊▄▉▌▄▌█ ▄▉▍▅ ▊█▍▌▄▄▍▍ █▄▄▌ ▄▍▍ █▅▉▋▆▇ ▍▇▊▋ + ▌.▆█ ▆▋ ▄ ▇▅▉▌ ▄▅▇▌▉▍ ▉▋▋▊ ▅▉▍▄█▇▉▌ ▋▋▋ ▅▆▄▅▋ ▉▋▊▍▊▋█ ▄▌▇▋▊▅▆▋ ▅▊▄▉ ▇▇▇▋█▉▉ █▌▅▍▌▆ (▋▌▇▌ ▅▌▄█▄▌▅▅▉ ▌▊█ ▍▉▉▆▉▌ ▇▅▍▅█ ▄▆▊▍ ▍█▉▍▇/▍▍▄▋▄▅ ▆▉▅▊ ▍▊▍ ▄▍▉█▉▋)
Fixed incorrect layer on small ramp trigger allowing opening into construction
Don't allow ramp to be extended if there are static world objects in it's bounds
Show a blocked interaction prompt if the ramp cannot be extended
Hardcode debug.disable_distant_sleepers to false, just want to rule it out of contributing to animator issues
Reset _activeAnimatorController in OnDisable, fixes hold type not updating properly after a player model has been pooled
Fixed boat splash fx not turning back on when a camera re-enters range