#config scanner=4 #config Weapon=3 #config Armor=2 #config Engine=0 #config Heatsinks=3 #config Mines=0 #config Shield=0 :1 err 1 ipo 6 bx opo 17 5 opo 12 8 ipo 7 ax ;check range cmp ax 500 ;fire if within range jls 2 opo 17 2 ipo 7 ax ;check range cmp ax 1000 ;fire if within range jls 2 ipo 6 dx cmp bx dx jgr 4 jmp 1 :2 err 2 ipo 2 ax ;check heat cmp ax 100 ;compare heat jgr 2 ;dont fire if too hot ipo 8 ax opo 15 ax ipo 7 ax ;check range cmp ax 500 ;fire if within range jls 2 opo 17 2 ipo 7 ax ;check range cmp ax 1000 ;fire if within range jls 2 jgr 3 ipo 6 dx cmp bx dx jgr 4 :3 err 3 opo 17 3 opo 12 -8 ipo 2 ax ;check heat cmp ax 100 ;compare heat jgr 1 ;dont fire if too hot ipo 7 ax ;check range cmp ax 500 ;fire if within range jls 2 opo 17 2 ipo 7 ax ;check range cmp ax 1000 ;fire if within range jls 2 ipo 6 dx ;store new hp cmp bx dx ;compare old and new hp jgr 4 jmp 2 :4 err 4 opo 18 1 opo 11 100 opo 14 16 ipo 1 ax cmp ax 100 jls 4 opo 11 0 ipo 6 bx opo 18 0 jmp 1