1,492 Commits over 549 Days - 0.11cph!
Improve scientists undergeared player evaluation
Initial bandaid fix for npc recklessly rushing players with prim weapons
Disable nav agent when scientists are sleeping, add editor only ai.showSleep command
Attempt to unbork the naval merge subtraction
Improve the way scientists search after losing sight of their target, todo fix scientists peeking too often instead of staying put
Increase bounds of sleeping volume, to help prevent sniping sleeping AI, will investigate better solution post naval
Hide scientists healthbar
Merge from fix_npc_flanking
Hook up new flanking algorithm to fsm
Polish flank code, remove allocs, ifdef logs, support moving navmesh, share editor and runtime code for easier testing, use parameters for magic numbers, fix wrong algorithm in ComputePathsInitialSimilarity
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 island scientists roaming into the water, make sure to use world space position not navmesh space, fix bug where navmesh space was used to check if a position was inside a world volume
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