branchrust_reboot/main/patrolheli_water_fixescancel
4 Commits over 31 Days - 0.01cph!
Use Distance2d, it's cheaper
Increase patrol helicopter push back force when flying over water, should prevent it getting too close to water
Fixed patrol helicopter getting in a stuck AI state when targeting a player that is on the surface of deep ocean (the helicopter still disengages if its target is too deep underwater, but it will continue patrolling and looking for targets)
Various Patrol helicopter water fixes:
-will no longer dive underwater
-will no longer target players that are more than 3m underwater in the ocean (see oceanDepthTargetCutoff on PatrolHelicopterAI)
-rotor wash particles will now appear at ocean level when flying over water rather than on the seabed