TPW LOS - AI line of sight

Author: tpw
Requires: Community Base Addons A3

IMPORTANT: TPW LOS is disabled by default since AI reaction time has been significantly sharpened in the vanilla game.

Description
-----------
Arma 3 AI is a bit of a mixed bag. Whilst on the one hand they can display almost superhuman accuracy at distance, close in they can be very sluggish and ignorant of obvious nearby threats. TPW LOS is a small mod designed to enhance the CQB experience by enabling AI to rapidly turn to and fire upon any visible enemies they have line of sight to.

	- Works for all editor placed and spawned infantry.
	- Infantry units will stop, rapidly turn (stance dependent) and fire upon any visible enemies they have line of sight to.
	- Enemy visibility is influenced by time of day, stance, speed, camouflage and NV at night.
	- Enemies closer than a specified minimum distance (default 25m) are considered visible regardless.
	- Enemies beyond a maximum distance (default 100m) are not subject to line of sight calculations.
	- Debugging will enable blue balls over any units that have line of sight to an enemy. 
	
This is an Arma 3 specific re-release of the original Arma 2 TPW AI LOS addon, using Arma3 specific scripting commands and assets. 	

Known bugs and shortcomings
---------------------------
While LOS works well to sharpen up CQB performance in Arma 2, your kilometerage may vary in Arma 3:

	- Arma 3 AI are significantly more recalcitrant than Arma 2 AI and scripting them can be like herding cats. Even though they may have perfect line of sight to an enemy, their FSM may cause them to do other things than shoot.
	- Arma 3 AI turn much slower than Arma 2 AI.

Thanks
------
SaOk: Original line of sight code demonstration 
CarlGustaffa: Azimuth stuff 
Ollem: Additional code and support 