Explanation:
 
Here, Torque has a lot of damage, so this routine decides whether he should self destruct (if value ~v1 < 3 then self destruct means that if an enemy is still on Torque's perimeter then he will self destruct) or return to the normal hunting routines (if value ~v1 > 70 then goto start_ #cur_head means that if the enemy is a long way away, then it is no immediate danger, and Torque should carry on as normal).

If the enemy is still close, but not right next to Torque, then he jumps to a routine to repair his damage.