; For 1.41 ver

Var Num
var q

IF INIT THEN {
if not q then { q = 1 NUM = ( TIME + RND 500 + RND 500 + RND 500 ) } endif
} ELSEIF LOSTTRACK and ( Num == GETENTVAR "NUM_TH" ) then {
SetEntVar "NUM_TH" 0
SetEntVar "ZZZConf" 0
} ELSE {
if Tgtconf > GETENTVAR "ZZZconf" then {
SetEntVar "ZZZConf" Tgtconf
SetEntVar "NUM_TH" Num } endif
if num == GETENTVAR "NUM_TH" then {
SetEntVar "ZZZConf" Tgtconf
if tgtrng > 1450 then {
	SETPRIORITY 253 INTERCEPT
} ELSE {
	SetEntVar "AtkPhase" 1
	SETPRIORITY 253 TerminalHome
} endif
	SetEntVar "TRNG" TGTRNG
	SetEntVar "TALT" TGTALT
	SetEntVar "homing" 1
	} else {
		drop
	} endif
} ENDIF
