; ASROC SS-N-14 -- Reinforce Alert


var PreEnableCourse
var dr
var tr

if init then {
	tr = -1
} endif

; This is a snapshot weapon- track is provided immediately
; by firing platform
IF NEWTRACK THEN {
	SetTactic "SubrocAttack_14"
} ELSEIF NOT INIT THEN {
		SetCrs PreEnableCourse
		SetSpd MaxSpd
} ENDIF

if tr == -1 then {
	if dr and ownalt < 0 then {
			tr = ( time + 7 )
	} elseif ownalt > 0 then {
		dr = 1
	} endif
	
} elseif time > tr then {
	Shutdown
} endif
If Losttrack Then {
	Shutdown
} endif
