; AirAtkSurf Doctrine RA

VAR FATRANG

IF ( GetEntVar "UnderAttack" != 1 ) Then {
	IF TgtID $= "HOSTILE" THEN {
		if AttackRng == 0 then {
			IF NOT FATRANG THEN {
				SteerAbeam
			} ENDIF
		} elseif AttackRng < tgtrng then {
			SetPersist 1 SETPRIORITY 255 SetAlt 328
			SetPersist 1 SETPRIORITY 253 Intercept
		} else {
			SetPersist 1 SETPRIORITY 253 SetAlt 328
			SetPersist 1 SETPRIORITY 254 STEERTO
			SetPersist 1 SETPRIORITY 255 attackbest
		} endif
	} endif
} endif
