'== included in the AI scripts file =='

'look for the archangel
'If s.controller.target = Null
'	For Local other:Ship = EachIn shipList
'		If other.behavior = "boss_archangel" Then s.controller.target = other.placeholder
'	Next
'EndIf

'the entire 4-turret flame cycle goes around this fast
timerTick(s.controller.timerList, "burn", 8000)

'where we are in the flame cycle
Local cycle# = timerTween(s.controller.timerList, "burn")

'from 0 - 3, set by the archangel, where the turret is in the circle
Local turn# = (s.controller.vars.get("angle") - 1) / 2

'should we be burning?
Local burn = True'False
Select turn
Case 0
	If cycle < .25 Or cycle > .75 Then burn = True
Case 1
	If cycle < .5 Then burn = True
Case 2
	If cycle > .25 And cycle < .75 Then burn = True
Case 3
	If cycle > .5 Then burn = True
EndSelect

If burn
	'fire weapons straight forward
	s.controller.target = Null
	fireShipWeapons(s, 0)
EndIf
