#config weapon=4 #config scanner=4 #config armor=1 #config heatsinks=3 #config engine=0 #def a #msg I see you :0 opo 17, 12 ;set scan arc to 12 do 17 ;set loop to 17 :1 ;large scan ipo 7, ax ;scan cmp ax, 1500 ;find anything? jls 2 ;if yes goto 2 opo 12, 12 ;if no rotate 12 loop 1 ;go back to 1 :2 ;split large scan opo 17, 6 ;set scan arc to 6 ipo 7, ax ;scan cmp ax, 1500 ;find anything? jls 3 ;if yes goto 3 opo 12, -3 ;rotate turret -3 ipo 7, ax ;scan cmp ax, 1500 ;find anything? jls 3 ;if yes goto 3 opo 12, 6 ;if no scan other sector ipo 7, ax cmp ax, 1500 jls 3 ;goto 3 jmp 1 ;found nothing? go back to large scan :3 ;scan across smaller scan opo 17, 0 ;set scan arc to 1 line ipo 7, ax ;scan cmp ax, 1500 ;if find, goto 5 jls 401 opo 12, -6 ;go to start of small area do 12 ;loop 12 :4 ;scan across small area ipo 7, ax ;scan cmp ax, 100 ;otherwise goto 401 jls 5 cmp ax, 1500 ;otherwise goto 401 jls 5 opo 12, 1 ;rotate turret 1 loop 4 ;goto 4 opo 12, -12 jmp 2 ;found nothing? to a stage 2 scan again :401 opo 11, 100 ipo 4, ax opo 14, ax opo 13, 0 jmp 5 :402 opo 11, -100 ipo 4, ax opo 14, ax opo 13, 0 jmp 5 :403 opo 17, 0 ipo 7, ax cmp ax, 1500 jls 5 jmp 4 :5 ipo 2, ax ;check heat cmp ax, 200 ;lower than 350? jls 6 ;fire normally jmp 4 ;heat too high goto 4 :6 opo 15, 0 ;FIRE! jmp 4