* Fix explosive placement while underwater
* Apply suggestions from code review
Co-Authored-By: alganthe <alganthe@live.fr>
* Change placeApprove header to reflect changes
* Replace lineIntersectsWith in isInMedicalFacility
* Replace linesIntersects in isInRepairFacility, fix params
Public func, params should have an expected type.
* Replace linesIntersects in spallTrack
* Replace lineIntersects in getFirstObjectIntersection and findReflection
* Replace lineIntersects in advanced throwing
grenades can pass glass underwater now, I bet all of 0 person will be glad that horrendous bug is now fixed.
* Fix possible issue in pointing while underwater
* Fix possible issue while underwater in attach
* Replace count with isEqualTo in lineIntersectsSurfaces replacements
* Fix inverted conditions
* Fix drawArc
* Fix fnc_attach
* Reverse advanced_throwing and spallTrack lineIntersects changes
* Fix issues raised from code review
* Optimizations with private, params, and isEqualType
* Fixed tab being used instead of space
* Fixed tabs inserted by notepad++
* More usage of new private syntax and params
- changed a few checks for an array being empty to `_arr isEqualTo []`
rather than `count _arr == 0`
- added more uses of `private` on the same line as the variable is
declared
- added more uses of params to assign variables passed as parameters
- removed unnecessary parentheses
- removed several unnecessary variable declarations with private array
syntax
* clean up and formatting
Changed: Spalling calculations now throttled across frames and limited; accurate but performant
Changed: All lookups are now index-based on a global projectiles array. This reduced runtime dramatically for all fragmentation.