branchrust_reboot/main/naval_updatecancel
88 Commits over 122 Days - 0.03cph!
Fix islands having double info zone (there are two nested prefabs for island, only the nested one is generated by s2p)
Setup AI sleeping on islands, not working, still figuring out why
Sleep AIs on ghostships were not players are nearby, realized island AIs never sleep, still investigating
Fix new scientists not playing static sound effect on death
Fix new Scientist using wrong headshots sounds
Prevent another "Look rotation viewing vector is zero" error
Fix scientist visual aiming being a bit offset, reduce snapping in aim/legs, has the side effect or currently removing the bend forward when sprinting
Add more navmesh blocking volumes to oilrigs
Fix scientists dying spontaneously when patrolling
Refactor some methods to remove the need for resetPathOnFailure and prevent potential inconsistent behaviour in debug mode
Do not allow partial paths on scientist patrols, as it causes some wild teleportation behaviour, investigation in progress
Fix npcZone OOB translation being wrong when parented to a ghostship
Add hack to not check if underwater if parented to a ghostship
Adjust npc zones on ghostships to prevent samples lying exactly on zone boundary
- First pass on fixing ghostship npc zones
- Allow rotating and moving zones
- Allow destroying zones
- When samping in a donut around the unit, use navmesh space instead of world space (fixes sampling wrong ghostship floors)
- Fix search origin being corrupted
- Fix lastChosenHidingSpot never being set
Merge from naval_scientist_fixes, fix wrong space coordinate for scientists zone and water checks (navmesh space instead of world space)
Add npc zones to ghost ships, fixes scientists not rushing or flanking well
-Fix navmesh being full of holes and unusable on plank made structures on deepsea islands.
-Fix scientists walking on top of static canons of islands
-Fix scientists walking through trees on islands
-Not fixed: loot crates present on island spawn are forever baked into the navmesh
Fix potential "Look rotation viewing vector is zero" error
Fix scientists spawn markers sometimes being placed too far from dwellings on islands, sometimes causing them to spawn in rocks
Try setting ruin door to world layer to fix navmesh bug
Fix scientists sometimes failing to find any good patrol destination and despawning, they will now allow partial paths
Make legacy AI information grid only show gizmo when selected, as it adds a lot of visual noise when looking at oilrigs
Optimize npc door opening logic, could save up to 0.1ms in best case.
Also fixes bugs where doors wouldn't open, or too late.
Update navigation obstacles (s2p) in launch site
Update navigation obstacles (s2p) in floating cities 1 to 4
Update navigation obstacles (s2p) in missile silo
Update navigation obstacles (s2p) in outpost
Update navigation obstacles (s2p) in water treatment plant
Update navigation obstacles (s2p) in trainyard
Update navigation obstacles (s2p) in excavator
Update navigation obstacles (s2p) in arctic base
Update navigation obstacles (s2p) in airfield
Update navigation obstacles (s2p) in military tunnels
Merge from replace_nav_modifiers_with volume, saves around 0.3ms per tick on large procgen, needs to commit monuments one by one for it to fully take effect
Fix scientists fsms being added to client budget queue in editor
Fix compile error when compiling with neither SERVER or CLIENT in mounted weapon
Re-enable scientists on deep sea islands
Make sleeping component server only
Hook new scientists to AIzones so that they go to sleep when no player is around
Readd new scientists to oilrigs
Fix bags dropped when new scientist corpse despawns having blank name instead of "scientist"
Replace getComponent by TryGetComponent to avoid alloc in editor and be a bit faster
Fix killing new scientists not updating num scientists killed statistic, and same for new animals
Fix new scientists having visible healthbar unlike old ones
Merge from revert_oildrig_scientists
Merge from convar_to_disabled_npcs_on_islands
Remove new scientists from desert military base